New FreeBSD package system (a.k.a. Daemon Package System (dps))

Ivan Voras ivoras at fer.hr
Sat May 12 03:32:34 UTC 2007


Dag-Erling Smørgrav wrote:
> Ivan Voras <ivoras at fer.hr> writes:
>> You can inspect s sqlite database with the provided utility. Unless the
>> database gets corrupted (which it tries to avoid by respecting ACID),
> 
> ACID is not something a database "respects", it is a set of guarantees
> that it provides to the application.  Avoiding database corruption is
> a necessary requirement for, rather than a consequence of, ACID.

I'm thinking of ACID as a set of ideas / procedures, the consequence of 
which is avoiding corruption. Of course, there's a "hierarchy of 
reliability" - the db relies on the file system to meet the 
requirements, the file system relies on the hardware, etc. but if the db 
doesn't make use of those, it's all for nothing.

> Perhaps you mean that SQLite tries to avoid database corruption by using
> locks, and either scatter-gather writes or copy-on-write, and flushing
> the file between transactions, to ensure consistency?

It uses locks, a journal file (for DML transactions), and flushes data 
between transactions. More info at: http://www.sqlite.org/lockingv3.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20070512/5e95a8a3/signature.pgp


More information about the freebsd-hackers mailing list