From: Markus Bertheau <twanger@bluetwanger.de>
To: 'PostgreSQL' <pgsql-sql@postgresql.org>
Subject: getting details about integrity constraint violation
Date: Thu, 02 Jun 2005 17:25:16 +0200
Message-ID: <1117725916.7345.2.camel@localhost.localdomain> (raw)
Hi,
how would I find out details about for example what constraint was
violated by an insert statement? The SQL state tells me, that a unique
constraint was violated, but it doesn't say which one. I cannot sensibly
react to such errors if I don't know what exactly happened.
I'd like to avoid parsing the text error message because it can be
different depending on the LC_MESSAGES the server / libpq runs with.
Markus
--
Markus Bertheau <twanger@bluetwanger.de>
Attachments:
signature.asc (application/pgp-signature, 188B) download
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: twanger@bluetwanger.de
Subject: Re: getting details about integrity constraint violation
In-Reply-To: <1117725916.7345.2.camel@localhost.localdomain>
* 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