Re: Drawbacks of using BYTEA for PK?
David Garamond <lists@zara.6.isreserved.com>
From: David Garamond <lists@zara.6.isreserved.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: "D. Dante Lorenso" <dante@lorenso.com>, pgsql-general@postgresql.org
Date: 2004-01-12T15:52:49Z
Lists: pgsql-general
Tom Lane wrote: > David Garamond <lists@zara.6.isreserved.com> writes: > >>Perhaps I can make a GUID by MD5( two random numbers || a timestamp || a >>unique seed like MD5 of '/sbin/ifconfig' output)... > > Adding an MD5 hash contributes *absolutely zero*, except waste of space, > to any attempt to make a GUID. The hash will add no uniqueness that was > not there before. Of course, in the above case, MD5 is used to compress the "uniqueness" (which should be more than 128-bit, comprised of: a) [good] random number; b) timestamp; c) a "node ID" element, either from /sbin/config output which contain MAC address, or from the hash of harddisk content, etc) into a 128-bit space. -- dave