Re: Recreating a primary key
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ericson Smith <eric@did-it.com>
Cc: Postgresql General <pgsql-general@postgresql.org>
Date: 2003-02-28T20:08:26Z
Lists: pgsql-general
Ericson Smith <eric@did-it.com> writes: > Is there a way to re-create a primary key? In 7.3, there's ALTER TABLE ADD PRIMARY KEY. In earlier releases, you'd have to fake it by manually poking pg_index.indisprimary after you create a unique index. regards, tom lane