renaming table leaves constraint behind [7.3.2] - Mailing list pgsql-general

From Holger Klawitter
Subject renaming table leaves constraint behind [7.3.2]
Date
Msg-id 200302101929.50623.lists@klawitter.de
Whole thread Raw
Responses Re: renaming table leaves constraint behind [7.3.2]  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hi there,

the following code throws an error (which it didn't in 7.2.x):

CREATE TABLE a ( id int unique );
...do a lot of things with a...
ALTER TABLE a RENAME to b;

CREATE TABLE a ( id int unique ); -- fails

Is there a "clean" way to have constraints renamed along with the table? Or
this there a way to just rename the constraint?

With kind regards / mit freundlichem Gruß
    Holger Klawitter
--
Holger Klawitter                          http://www.klawitter.de
lists@klawitter.de

pgsql-general by date:

Previous
From: Jean-Luc Lachance
Date:
Subject: Re: selects with large offset really slow
Next
From: Tom Lane
Date:
Subject: Re: upgrade from 7.3.1 to 7.3.2