Creating unique constraints on OID

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Creating unique constraints on OID
Дата
Msg-id Pine.LNX.4.30.0110201551100.827-100000@peter.localdomain
обсуждение исходный текст
Ответы Re: Creating unique constraints on OID  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Shouldn't this work?

create table test ( a int, unique (oid) );
ERROR:  CREATE TABLE: column "oid" named in key does not exist

Because this works:

create table test ( a int );
CREATE

alter table test add unique (oid);
NOTICE:  ALTER TABLE/UNIQUE will create implicit index 'test_oid_key' for table 'test'
CREATE

And shouldn't the last one say "ALTER"?

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter



В списке pgsql-hackers по дате отправления:

Предыдущее
От: speedboy
Дата:
Сообщение: createlang difficulty.
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: [GENERAL] To Postgres Devs : Wouldn't changing the select limit