Re: Recreating a primary key - Mailing list pgsql-general

From Tom Lane
Subject Re: Recreating a primary key
Date
Msg-id 5959.1046462906@sss.pgh.pa.us
Whole thread Raw
In response to Recreating a primary key  (Ericson Smith <eric@did-it.com>)
List 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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Some useful plpgsl
Next
From: Detlef Jockheck
Date:
Subject: automatic creation of oid