Re: Weird message when creating PK constraint named like table - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Weird message when creating PK constraint named like table
Date
Msg-id 28874.1326324245@sss.pgh.pa.us
Whole thread Raw
In response to Weird message when creating PK constraint named like table  (r d <rd0002@gmail.com>)
List pgsql-bugs
r d <rd0002@gmail.com> writes:
> The SQLSTATE 42P07 is described in the manual as only as "table undefined",
> and it is not clear if the intent is to allow or
> disallow the creation of a constraint called the same as the table in
> Postgresql.

Where do you see that?  In Appendix A that code is listed as
"duplicate_table", which is exactly what the problem is (well, as long
as you know that tables and indexes share the same namespace in PG).

            regards, tom lane

pgsql-bugs by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: BUG #6394: Transacciones concurrentes
Next
From: Tom Lane
Date:
Subject: Re: Botched estimation in eqjoinsel_semi for cases without reliable ndistinct