[HACKERS] Proposal: add error message in backend/catalog/index.c

Поиск
Список
Период
Сортировка
От Ioseph Kim
Тема [HACKERS] Proposal: add error message in backend/catalog/index.c
Дата
Msg-id 48b4e455-13c6-f1c5-5b73-353539b442ab@postgresql.kr
обсуждение исходный текст
Ответы Re: [HACKERS] Proposal: add error message in backend/catalog/index.c  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
Hi,

I propose to append an error message when index name and table name are same.


example:

postgres@postgres=# create table t (a int not null, constraint t primary key (a));
ERROR:  relation "t" already exists


End users will  confusing pretty, because if users meet this message, users will check pg_class,

but they will not found in pg_class.

in this case,

"index name must not be same relation name" error message is better.


Some RDBMS are allow that table name and constraint unique, primary key name are same.

if they meet that message(relation "t" already exists), that message is not clear.


Regards, Ioseph


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

Предыдущее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: [HACKERS] Radix tree for character conversion
Следующее
От: Dilip Kumar
Дата:
Сообщение: Re: [HACKERS] Parallel bitmap heap scan