Re: referencing oid impozsible ?

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: patrick(dot)jacquot(at)anpe(dot)fr
Cc: liste SQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: referencing oid impozsible ?
Date: 2001-09-11 16:58:27
Message-ID: Pine.BSF.4.21.0109110954240.21829-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tue, 11 Sep 2001 patrick(dot)jacquot(at)anpe(dot)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.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2001-09-11 17:29:48 Re: referencing oid impozsible ?
Previous Message patrick.jacquot 2001-09-11 14:58:35 referencing oid impozsible ?