Re: oid not "UNIQUE" for use as FOREIGN KEY?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: oid not "UNIQUE" for use as FOREIGN KEY?
Дата
Msg-id Pine.BSF.4.21.0110222331310.49557-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на oid not "UNIQUE" for use as FOREIGN KEY?  ("Ernesto Baschny" <ernst@baschny.de>)
Ответы Re: oid not "UNIQUE" for use as FOREIGN KEY?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: UNION bug in 7.1.3?
Следующее
От: Herbert Liechti
Дата:
Сообщение: Re: UNION bug in 7.1.3?