From: Tom Lane <tgl@sss.pgh.pa.us>
To: r d <rd0002@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Weird message when creating PK constraint named like table
Date: Wed, 11 Jan 2012 18:24:05 -0500
Message-ID: <28874.1326324245@sss.pgh.pa.us> (raw)
In-Reply-To: <CALtFtELrOJ-V0wuke++S7C1_XvDiJ9irBtnuecjLMq4d7zhhTg@mail.gmail.com>
References: <CALtFtELrOJ-V0wuke++S7C1_XvDiJ9irBtnuecjLMq4d7zhhTg@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, rd0002@gmail.com
Subject: Re: Weird message when creating PK constraint named like table
In-Reply-To: <28874.1326324245@sss.pgh.pa.us>
References: <CALtFtELrOJ-V0wuke++S7C1_XvDiJ9irBtnuecjLMq4d7zhhTg@mail.gmail.com> <28874.1326324245@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox