From: Aaron Bono <postgresql@aranya.com>
To: operationsengineer1@yahoo.com <operationsengineer1@yahoo.com>
Cc: David Clarke <pigwin32@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Alternative to serial primary key
Date: Fri, 7 Jul 2006 00:51:14 -0500
Message-ID: <bf05e51c0607062251w8f3c853u6032e20aeddb6802@mail.gmail.com> (raw)
In-Reply-To: <20060707052511.87859.qmail@web33302.mail.mud.yahoo.com>
References: <12b7ac1e0607061330o34adbd6ds9bd624d3889c7fe7@mail.gmail.com>
<20060707052511.87859.qmail@web33302.mail.mud.yahoo.com>
On 7/7/06, operationsengineer1@yahoo.com <operationsengineer1@yahoo.com>
wrote:
>
> > Plus I feel I would be remiss in not
> > exploring an
> > alternative to the serial key.
>
> why? it is a tried and true method.
Actually, there are two reasons I think it good for someone new to SQL to
explore this option. First of all, it is very educational. Secondly, it is
the person who stands up and says, "I know everyone does it this way, but
what if we did it that way?" who has a chance of discovering something new.
For this particular topic however, using the serial is very easy and using a
hash is not only error prone but much more difficult.
It is good to see different philosophies about foreign keys though!
-Aaron Bono
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: postgresql@aranya.com, operationsengineer1@yahoo.com, pigwin32@gmail.com
Subject: Re: Alternative to serial primary key
In-Reply-To: <bf05e51c0607062251w8f3c853u6032e20aeddb6802@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox