Re: Index name different from constraint name

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Index name different from constraint name
Дата
Msg-id 6627.1130340892@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Index name different from constraint name  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: Index name different from constraint name  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-bugs
Stephen Frost <sfrost@snowman.net> writes:
> test=> create table a (
> test(>   b    int    primary key
> test(> );
> NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "a_pkey" for=
>  table "a"
> CREATE TABLE
> test=> alter table a rename to c;
> ALTER TABLE
> test=> alter index a_pkey rename to c_pkey;
> ALTER INDEX

Arguably we should forbid ALTER INDEX RENAME on an index that belongs to
a constraint, and make you rename the constraint instead (and have that
implicitly change the index name too).

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2001: Signal 11 after concurrent inserts + updates
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Index name different from constraint name