Creating unique constraints on OID - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Creating unique constraints on OID
Date
Msg-id Pine.LNX.4.30.0110201551100.827-100000@peter.localdomain
Whole thread Raw
Responses Re: Creating unique constraints on OID
List 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 by date:

Previous
From: speedboy
Date:
Subject: createlang difficulty.
Next
From: Thomas Lockhart
Date:
Subject: Re: [GENERAL] To Postgres Devs : Wouldn't changing the select limit