Re: serial as FK ?

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
Cc: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>, dev(at)archonet(dot)com
Subject: Re: serial as FK ?
Date: 2005-02-28 20:16:27
Message-ID: Pine.GSO.4.62.0502282314220.18315@ra.sai.msu.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 28 Feb 2005, Stephan Szabo wrote:

>
> On Mon, 28 Feb 2005, Oleg Bartunov wrote:
>
>> what's wrong to use SERIAL as FK without explicit PRIMARY KEY or UNIQUE ?
>
> Serial isn't enough to guarantee uniqueness as required by foreign keys.

you're certainly right !

>

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-02-28 20:35:18 Re: [HACKERS] snprintf causes regression tests to fail
Previous Message Pavel Stehule 2005-02-28 20:08:21 Re: SQL99 Hierarchical queries