Date: Sun, 11 May 2008 06:38:25 -0700 From: Garrett Cooper <yanefbsd@gmail.com> To: Joerg Sonnenberger <joerg@britannica.bec.de> Cc: freebsd-hackers@freebsd.org Subject: Re: Adding .db support to pkg_tools Message-ID: <9FC19AC2-DAD8-418C-8B9C-F129DEC58CEF@gmail.com> In-Reply-To: <20080509124308.GA596@britannica.bec.de> References: <op.uavxx8ip2n4ijf@duckjen.nextgentel.no> <20080509124308.GA596@britannica.bec.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On May 9, 2008, at 5:43 AM, Joerg Sonnenberger wrote: > On Fri, May 09, 2008 at 01:52:46PM +0200, Anders Nore wrote: >> I'm working on adding .db support to the pkg_tools( i.e. pkg_add, >> pkg_info, >> etc. ) as part of SoC 2008. The database api used is BerkeleyDB >> that comes >> with the base system (/usr/src/include/db.h). BerkeleyDB is not >> you're >> typical relational db, and can only save key/value pairs. The way I'm >> thinking of storing information to the .db is to name the keys as the >> directory names in /var/db/pkg. And save the +* files in the >> directories to >> the value element in the db, separated with a special character or >> similar. > > As one of the persons hacking on pkg_install in pkgsrc/NetBSD, I would > *strongly* advisy you against storing the files only in a bdb file. > The change of major and complete corruption with bdb185 is high, > consider pulling the plug in the middle of a long update. +1. BDB is quite easy to corrupt... -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9FC19AC2-DAD8-418C-8B9C-F129DEC58CEF>