Re: Renaming constraints

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Renaming constraints
Дата
Msg-id 7567.1255032445@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Renaming constraints  (Andreas Kalsch <andreaskalsch@gmx.de>)
Ответы Re: Renaming constraints  (Thom Brown <thombrown@gmail.com>)
Using pg_catalog to define things across schemas  (Andreas Kalsch <andreaskalsch@gmx.de>)
Список pgsql-general
Andreas Kalsch <andreaskalsch@gmx.de> writes:
> But with this operation you will recreate the whole index. - I have
> found out, that the name of the constraint's index is the same as the
> constraint, so that I can simply rename the index.

You'd probably better rename the constraint too to avoid confusion.
Failing anything else, there's always direct UPDATE of the pg_constraint
catalog.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Emanuel Calvo Franco
Дата:
Сообщение: Re: Query inside RTF
Следующее
От: Thom Brown
Дата:
Сообщение: Re: Renaming constraints