Re: Is there any different for foreign key to be serial instead of integer - Mailing list pgsql-general

From Richard Broersma
Subject Re: Is there any different for foreign key to be serial instead of integer
Date
Msg-id 396486431001062039x5b82370do1b13273a31604ce1@mail.gmail.com
Whole thread Raw
In response to Re: Is there any different for foreign key to be serial instead of integer  (Scott Marlowe <scott.marlowe@gmail.com>)
List pgsql-general
On Wed, Jan 6, 2010 at 8:36 PM, Scott Marlowe <scott.marlowe@gmail.com> wrote:
>.  A
>> serial foreign key would be nonsensical since foreign keys should be
>> be generating their own values.
>
> Pretty sure the OP was talking about referencing a bigserial from a
> foreign key, which makes perfect sense for certain types of mappings.
> FKs don't generate their own values, they reference values in a PK or
> unique field somewhere else really.

Good catch. :)  I've been sticking my foot in my mouth all day with
typos like this.


--
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Is there any different for foreign key to be serial instead of integer
Next
From: Greg Smith
Date:
Subject: Re: PostgreSQL Write Performance