From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,28388ff47649adfc X-Google-Attributes: gidf678f,public X-Google-Thread: fa0ae,28388ff47649adfc X-Google-Attributes: gidfa0ae,public From: lehotsky@tiac.net (Alan Lehotsky) Subject: Re: dbm size limit in OSF Date: 1996/10/25 Message-ID: #1/1 X-Deja-AN: 192127587 distribution: world references: <54rfks$581@nntp.ucs.ubc.ca> content-type: text/plain; charset=ISO-8859-1 organization: Quality Software Management mime-version: 1.0 newsgroups: comp.unix.osf.misc,comp.lang.perl.misc In article <54rfks$581@nntp.ucs.ubc.ca>, advax@triumf.ca wrote: >>> >>>So Digital have in their wisdom imposed some arbitrary small limit >>>on record lengths in a dbm database. >>> Don't blame Digital. The header file you showed (minus the copyright information (tsk,tsk..) is right out of BSD 4.3 (or maybe 4.2...) with only minor modifications for name-space pollution by OSF. NDBM is not supposed to be a general-purpose database, it was intended for fairly limited things.... The new XPG4.2 standards raise the size of keys and data, but they're still not exactly enormous. I think the requirement went up to maybe 4kb for the key+data... I implemented a rather clever hack that allowed backwards compatible access to existing ndbm files while allowing new files to dynamically grow to the larger size. It's in the next release of OSF/1 source from the OSF.... >>>Can I just change this value? It's pretty tricky; there's a lot of magic hacking going on that (if I remember right) wasn't parameterized very well. >>>Is it feasible to make a custom version of ndbm and link it >>>with Perl? Should I just install gdbm ? Yes, or get the new database code from BSD 4.4; it's very nicely done from my quick look at it a year ago... Regards, Al Lehotsky -- Quality Software Management (617)862-5418 (617)674-1096 FAX lehotsky@tiac.net http://www.tiac.net/users/lehotsky Software Process Improvement / Management Consulting Language Design and Compiler Construction Management Consulting