renaming table leaves constraint behind [7.3.2]

Поиск
Список
Период
Сортировка
От Holger Klawitter
Тема renaming table leaves constraint behind [7.3.2]
Дата
Msg-id 200302101929.50623.lists@klawitter.de
обсуждение исходный текст
Ответы Re: renaming table leaves constraint behind [7.3.2]
Список 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 по дате отправления:

Предыдущее
От: Jean-Luc Lachance
Дата:
Сообщение: Re: selects with large offset really slow
Следующее
От: Tom Lane
Дата:
Сообщение: Re: upgrade from 7.3.1 to 7.3.2