Re: oid not "UNIQUE" for use as FOREIGN KEY? - Mailing list pgsql-general

From Stephan Szabo
Subject Re: oid not "UNIQUE" for use as FOREIGN KEY?
Date
Msg-id Pine.BSF.4.21.0110222331310.49557-100000@megazone23.bigpanda.com
Whole thread Raw
In response to oid not "UNIQUE" for use as FOREIGN KEY?  ("Ernesto Baschny" <ernst@baschny.de>)
Responses Re: oid not "UNIQUE" for use as FOREIGN KEY?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Tue, 23 Oct 2001, Ernesto Baschny wrote:

> Now, what is the problem?  "oid" for sure should be an UNIQUE
> field in each table, doesn't it?  Is it a bug?

To your last two questions, no and yes.  Unless you place a unique index
on oid, it is not actually guaranteed unique (due to potential
wraparound), however the alter code also doesn't yet handle referencing to
non-user columns.


pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: UNION bug in 7.1.3?
Next
From: Herbert Liechti
Date:
Subject: Re: UNION bug in 7.1.3?