From: jpoley@poley.net
To: pgsql-admin@postgresql.org
Subject: adding primary keys
Date: 3 Dec 2001 11:39:12 -0800
Message-ID: <ad2db287.0112031139.1375664a@posting.google.com> (raw)
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?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jpoley@poley.net
Subject: Re: adding primary keys
In-Reply-To: <ad2db287.0112031139.1375664a@posting.google.com>
References: <ad2db287.0112031139.1375664a@posting.google.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox