[comp.archives] [unix-questions...] Re: dbm docs?

oz@ursa.ccs.yorku.ca (Ozan Yigit) (05/25/91)

Archive-name: database/dbm/bsd-db/1991-05-23
Archive: postgres.berkeley.edu:/pub/bsd_db.tar.Z [128.32.149.1]
Original-posting-by: oz@ursa.ccs.yorku.ca (Ozan Yigit)
Original-subject: Re: dbm docs?
Reposted-by: emv@msen.com (Edward Vielmetti, MSEN)


pete@othello.dartmouth.edu (Pete Schmitt) writes:

   I'm looking for any docs (beyond the man page) for dbm.  The information
   I'm looking for is how the data is stored in both the .dir and .pag files
   and how they are used together internally.

You can find out about the exact details of dbm/ndbm's page file format in
the sdbm implementation, as sdbm uses the very same format of dbm/ndbm.
Sdbm also comes with a few trivial utilities to work with the page files
alone, ignoring the dir file. The dir file format is simple: it is an
array of bits, and the algorithm to generate those bits is different for
sdbm and ndbm. To put it simply, it is the split history of the page file,
and any attempt to utilize it must have the same generation algorithm and
the same hash function as the database library.

Everything else you might want to know about dbm-style external hashing
algorithms is detailed in [1], ftpable from nexus.yorku.ca under pub/oz
as hash.ps.Z.

If you need a very nice and fast hashing package with full dbm/ndbm
capabilities, you should get the berkeley hash package, ftpable from
postgres.berkeley.edu as bsd_db.tar.Z. This package includes a btree
library as well.

oz
---
[1] Seltzer and Yigit, A New Hash Package for UNIX,
    Proceedings of the USENIX Technical Conference, Dallas, Texas.
    January 1991, 173-184
---
Not all good things come with three	 | internet: oz@nexus.yorku.ca
pages of dogma and an attitude. - anon   | uucp: utzoo/utai!yunexus!oz

-- comp.archives file verification
postgres.berkeley.edu
-r--r--r--  1 ftp      ftp        238109 Feb 19 00:06 /pub/bsd_db.tar.Z
found bsd-db ok
postgres.berkeley.edu:/pub/bsd_db.tar.Z

adrianho@barkley.berkeley.edu (Adrian J Ho) (05/31/91)

Archive-name: database/dbm/bsd-db/1991-05-29
Archive: postgres.berkeley.edu:/pub/bsd_db.tar.Z [128.32.149.1]
Original-posting-by: adrianho@barkley.berkeley.edu (Adrian J Ho)
Original-subject: Re: dbm docs?
Reposted-by: emv@msen.com (Edward Vielmetti, MSEN)


In article <19336@rpp386.cactus.org> jfh@rpp386.cactus.org (John F Haugh II) writes:
>If we could get some kind soul to re-post the sources to a newsgroup
>near you, it would probably be out there a bit faster.  Without the
>full directory pathname, it isn't possible even to get it with BITFTP
>or whatever.

	postgres.berkeley.edu:/pub/bsd_db.tar.Z [128.32.149.1]

--
-----------------------------------------------------------------------------
Adrian Ho, EECS (pronounced "eeks!") Dept.		Phone: (415) 642-5563
UC Berkeley					adrianho@barkley.berkeley.edu

-- comp.archives file verification
postgres.berkeley.edu
-r--r--r--  1 ftp      ftp        238109 Feb 19 00:06 /pub/bsd_db.tar.Z
found bsd-db ok
postgres.berkeley.edu:/pub/bsd_db.tar.Z