X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B5B22528D1 for ; Thu, 2 Jun 2005 13:32:10 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53157-07 for ; Thu, 2 Jun 2005 16:32:06 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0BA0452887 for ; Thu, 2 Jun 2005 13:32:05 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j52GW9Mv014880; Thu, 2 Jun 2005 12:32:09 -0400 (EDT) To: Markus Bertheau Cc: "'PostgreSQL'" Subject: Re: getting details about integrity constraint violation In-reply-to: <1117725916.7345.2.camel@localhost.localdomain> References: <1117725916.7345.2.camel@localhost.localdomain> Comments: In-reply-to Markus Bertheau message dated "Thu, 02 Jun 2005 17:25:16 +0200" Date: Thu, 02 Jun 2005 12:32:09 -0400 Message-ID: <14879.1117729929@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/28 X-Sequence-Number: 21629 Markus Bertheau writes: > how would I find out details about for example what constraint was > violated by an insert statement? You can't, at the moment, except by parsing the text message. The "error fields" facility in the FE/BE protocol could be extended in that direction, and I think there's already been some discussion about it; but no one has stepped up with a concrete proposal, much less volunteered to do the work ... regards, tom lane