Re: SQLSTATE code for duplicate constraint

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SQLSTATE code for duplicate constraint
Дата
Msg-id 523.1199407937@sss.pgh.pa.us
обсуждение исходный текст
Ответ на SQLSTATE code for duplicate constraint  (Dan Langille <dan@langille.org>)
Список pgsql-general
Dan Langille <dan@langille.org> writes:
> What error code would be raised for a duplicate index name?

regression=# \set VERBOSITY verbose
regression=# create table t1 (f1 int);
CREATE TABLE
regression=# create index t1i on t1(f1);
CREATE INDEX
regression=# create index t1i on t1(f1);
ERROR:  42P07: relation "t1i" already exists
LOCATION:  index_create, index.c:567

Evidently it's ERRCODE_DUPLICATE_TABLE.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: negative duration times in query logs
Следующее
От: Ow Mun Heng
Дата:
Сообщение: Re: [OT] Slony (initial) Replication - Slow