Re: serial as FK ? - Mailing list pgsql-hackers

From Oleg Bartunov
Subject Re: serial as FK ?
Date
Msg-id Pine.GSO.4.62.0502282314220.18315@ra.sai.msu.su
Whole thread Raw
In response to Re: serial as FK ?  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
List 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@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: SQL99 Hierarchical queries
Next
From: Nicolai Tufar
Date:
Subject: Re: [PATCHES] snprintf causes regression tests to fail