Re: referencing oid impozsible ? - Mailing list pgsql-sql

From Stephan Szabo
Subject Re: referencing oid impozsible ?
Date
Msg-id Pine.BSF.4.21.0109110954240.21829-100000@megazone23.bigpanda.com
Whole thread Raw
In response to referencing oid impozsible ?  (patrick.jacquot@anpe.fr)
List pgsql-sql
On Tue, 11 Sep 2001 patrick.jacquot@anpe.fr wrote:

> hello all
> I tried recently (pgsql 7.1.2) to establish the oid of one table as foreign key
> in another. 
> To no avail : there was no uniqueness constraint on that column
> Naturally, it seems impossible to add a uniqueness constraint to such a system
> column.
> As far as i know, the oid is by nature unique, excepting for the case of
> wrapping of their sequence.
> Is there any workaround ?

You could add a unique index on oid (which would basically be the unique
constraint), but IIRC it still won't work on the system attribute.




pgsql-sql by date:

Previous
From: patrick.jacquot@anpe.fr
Date:
Subject: referencing oid impozsible ?
Next
From: "Josh Berkus"
Date:
Subject: Re: referencing oid impozsible ?