adding primary keys

From: jpoley(at)poley(dot)net (jason)
To: pgsql-admin(at)postgresql(dot)org
Subject: adding primary keys
Date: 2001-12-03 19:39:12
Message-ID: ad2db287.0112031139.1375664a@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

how come you can not alter a table and add a primary key after the
table has been created?
(or at least i can't seem to)

mydb=> alter table actions add primary key (action);
ERROR: ALTER TABLE / ADD CONSTRAINT is not implemented for that
constraint type.

any suggestions?

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ligia Pimentel 2001-12-03 23:14:09 Making user names NOT case sensitive
Previous Message Tom Lane 2001-12-03 18:32:15 Re: case sensititvity bug in foreign keys on cygwin