From: Tom Lane <tgl@sss.pgh.pa.us>
To: Raul Kaubi <raulkaubi@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: How to log bind values for statements that produce errors
Date: Tue, 07 Sep 2021 09:48:52 -0400
Message-ID: <3168996.1631022532@sss.pgh.pa.us> (raw)
In-Reply-To: <DDFC3268-EDD9-4A76-AEEE-55ACD3FB25B6@gmail.com>
References: <DDFC3268-EDD9-4A76-AEEE-55ACD3FB25B6@gmail.com>
Raul Kaubi <raulkaubi@gmail.com> writes:
> We have a problem with certain select statement, which produces error and we would like to know the bind value that is given as parameter.
> I have tried parameters:
> log_min_duration_statement = 0
> log_parameter_max_length_on_error = -1
The other constraint on reporting parameters during error is that they
have to be sent by the client in text not binary mode. I venture that
your client is sending them in binary.
(The reason for this restriction is to avoid the overhead of converting
binary to text for every query, which we'd have to do in advance of
knowing whether the query will throw an error.)
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 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: tgl@sss.pgh.pa.us, raulkaubi@gmail.com
Subject: Re: How to log bind values for statements that produce errors
In-Reply-To: <3168996.1631022532@sss.pgh.pa.us>
References: <DDFC3268-EDD9-4A76-AEEE-55ACD3FB25B6@gmail.com> <3168996.1631022532@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