Creating unique constraints on OID

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Creating unique constraints on OID
Date: 2001-10-21 12:28:01
Message-ID: Pine.LNX.4.30.0110201551100.827-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmx(dot)net http://funkturm.homeip.net/~peter

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Johann Zuschlag 2001-10-21 12:45:03 Re: Error while restoring database
Previous Message Peter Eisentraut 2001-10-21 12:27:42 Re: schema support, was Package support for Postgres