From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeffrey Brendecke <yakhki@yahoo.de>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: v8.1: Error severity on libpq PGconn*
Date: Mon, 26 Nov 2007 21:24:33 -0500
Message-ID: <8904.1196130273@sss.pgh.pa.us> (raw)
In-Reply-To: <315963.85252.qm@web26909.mail.ukl.yahoo.com>
References: <315963.85252.qm@web26909.mail.ukl.yahoo.com>
Jeffrey Brendecke <yakhki@yahoo.de> writes:
> Is there a recommended way to get the error severity (ERROR vs. FATAL vs. PANIC, etc.) off a PGconn* as there is for a PGresult* using PQresultErrorField()?
> For example, when I pass in a non-existent database name when creating a connection, I get the following message:
> FATAL: database "xxxxxx" does not exist
What you're really wishing here is that errors generated within libpq
itself had SQLSTATE and other decoration. They don't :-(. Improving
this is on the to-do list, but someone is going to have to sit down and
do several days/weeks of hard and mostly-boring work to make it happen.
Do you want to volunteer?
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-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, yakhki@yahoo.de
Subject: Re: v8.1: Error severity on libpq PGconn*
In-Reply-To: <8904.1196130273@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