[HACKERS] Proposal: add error message in backend/catalog/index.c - Mailing list pgsql-hackers

From Ioseph Kim
Subject [HACKERS] Proposal: add error message in backend/catalog/index.c
Date
Msg-id 48b4e455-13c6-f1c5-5b73-353539b442ab@postgresql.kr
Whole thread Raw
Responses Re: [HACKERS] Proposal: add error message in backend/catalog/index.c  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List 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 by date:

Previous
From: Kyotaro HORIGUCHI
Date:
Subject: Re: [HACKERS] Radix tree for character conversion
Next
From: Dilip Kumar
Date:
Subject: Re: [HACKERS] Parallel bitmap heap scan