From: Tom Lane <tgl@sss.pgh.pa.us>
To: Markus Bertheau <twanger@bluetwanger.de>
Cc: 'PostgreSQL' <pgsql-sql@postgresql.org>
Subject: Re: getting details about integrity constraint violation
Date: Thu, 02 Jun 2005 12:32:09 -0400
Message-ID: <14879.1117729929@sss.pgh.pa.us> (raw)
In-Reply-To: <1117725916.7345.2.camel@localhost.localdomain>
References: <1117725916.7345.2.camel@localhost.localdomain>
Markus Bertheau <twanger@bluetwanger.de> 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
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, twanger@bluetwanger.de
Subject: Re: getting details about integrity constraint violation
In-Reply-To: <14879.1117729929@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