pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to get error message details from libpq based psqlODBC driver (regression)
Date: Sat, 22 Feb 2020 17:23:11 -0600
Message-ID: <d4ce4a5c-3d88-6168-5dbb-2d4b7e104fb0@gmail.com> (raw)
In-Reply-To: <a4546360-1fa0-b6e5-b2ad-f99b84f352f0@aklaver.com>
References: <A7FCF8D5FF9D43299357665878A0BCA0@dell2>
	<a4546360-1fa0-b6e5-b2ad-f99b84f352f0@aklaver.com>

On 2/22/20 5:19 PM, Adrian Klaver wrote:
> On 2/22/20 2:37 PM, Andrus wrote:
>> Hi!
>>
>> I'm looking for a way to fix psqlODBC driver regression.
>>
>> Starting at psqlODBC 09.05.0100 when psqlODBC driver uses libpq for all
>> operations (earlier versions used libpg only for authentication) ODBC client
>> does not show error message details.
>>
>> For example, users got only generic error message like
>>
>>     Connectivity error: ERROR: insert or update on table "mytable" violates
>>     foreign key constraint  "mytable_myfield_fkey
>>
>> Error message details like
>>
>>     Key (myfield)=(mykeyvalue) is not present in table "mymastertable".;
>>
>> are no more returned.
>>
>> How to detailed error message or at least only bad key value "mykeyvalue"
>> which is returned in error message details ?
>>
[snip]
>
> What does the log_error_verbosity setting in postgresql.conf show?

Does that affect what the ODBC driver sends back to the user?

-- 
Angular momentum makes the world go 'round.





view thread (6+ messages)  latest in thread

Message-ID: <d4ce4a5c-3d88-6168-5dbb-2d4b7e104fb0@gmail.com>
Permalink:  ../d4ce4a5c-3d88-6168-5dbb-2d4b7e104fb0@gmail.com/
Also on:    postgresql.org/message-id/d4ce4a5c-3d88-6168-5dbb-2d4b7e104fb0@gmail.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: How to get error message details from libpq based psqlODBC driver (regression)
  In-Reply-To: <d4ce4a5c-3d88-6168-5dbb-2d4b7e104fb0@gmail.com>
  References: <A7FCF8D5FF9D43299357665878A0BCA0@dell2> <a4546360-1fa0-b6e5-b2ad-f99b84f352f0@aklaver.com> <d4ce4a5c-3d88-6168-5dbb-2d4b7e104fb0@gmail.com>

* 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