darcy@druid.net ("D'Arcy J.M. Cain") writes: > And even given all of that, I would probably still use serial. >> and has been recommended. But having a hash function over the address >> column as the primary key means I can always regenerate my primary key > > Danger, Will Robinson. The phrase "regenerate my primary key" > immediately raises the hairs on the back of my neck. If the primary > key can ever change, you have a broken schema.
Actually, I'd call it worse than that... A schema is "merely" a technical detail. The trouble is that if the primary key can ever change, then you have a broken model for the data. You can do "technical things" to fix problems with a schema; if the data model is busted, then your schema is necessarily broken, in a way that cannot be fixed. -- (format nil "[EMAIL PROTECTED]" "cbbrowne" "ntlug.org") http://cbbrowne.com/info/unix.html MICROS~1 is to quality software what MacDonalds is to gourmet cooking ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org