Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 6425E450671 for ; Wed, 11 Jan 2012 19:24:19 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rl7Wm-0004xo-4W for pgsql-bugs@postgresql.org; Wed, 11 Jan 2012 23:24:20 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q0BNO5WQ028875; Wed, 11 Jan 2012 18:24:05 -0500 (EST) To: r d cc: pgsql-bugs@postgresql.org Subject: Re: Weird message when creating PK constraint named like table In-reply-to: References: Comments: In-reply-to r d message dated "Wed, 11 Jan 2012 20:18:48 +0100" Date: Wed, 11 Jan 2012 18:24:05 -0500 Message-ID: <28874.1326324245@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/93 X-Sequence-Number: 32160 r d 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