pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Steele <david@pgmasters.net>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Arthur Zakirov <a.zakirov@postgrespro.ru>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Re: query logging of prepared statements
Date: Wed, 20 Mar 2019 14:46:00 +0400
Message-ID: <2da70a91-2a22-9d78-84ba-cba4b71c7541@pgmasters.net> (raw)
In-Reply-To: <345f3504-e3cd-3a01-c593-ebbbe555dd69@postgrespro.ru>
References: <20190208132953.GF29720@telsasoft.com>
	<20190215145704.GW30291@telsasoft.com>
	<20190227180653.GF28750@telsasoft.com>
	<70868e0d-2a29-36c8-e3e2-f54a56804bc4@postgrespro.ru>
	<20190304183150.GK29584@telsasoft.com>
	<345f3504-e3cd-3a01-c593-ebbbe555dd69@postgrespro.ru>

Hi Justin,

On 3/5/19 2:30 PM, Arthur Zakirov wrote:
> On 04.03.2019 21:31, Justin Pryzby wrote:
>> It wasn't intentional.  Find attached v3 patch which handles that case,
>> by removing the 2nd call to errdetail_execute() ; since it's otherwise 
>> unused,
>> so remove that function entirely.
> 
> Thank you.
> 
>> Thanks for reviewing.  I'm also interested in discussion about whether 
>> this
>> change is undesirable for someone else for some reason ?  For me, the 
>> existing
>> output seems duplicative and "denormalized".  :)
> 
> I perfectly understand your use case. I agree, it is duplicated. But I 
> think some people may want to see it at every EXECUTE, if they don't 
> want to grep for the prepared statement body which was logged earlier.
> 
> I think it would be good to give possibility to configure this behavior. 
> At first version of your patch you relied on log_error_verbosity GUC. 
> I'm not sure that this variables is suitable for configuring visibility 
> of prepared statement body in logs, because it sets more general 
> behavior. Maybe it would be better to introduce some new GUC variable if 
> the community don't mind.
Thoughts on this?

Regards,
-- 
-David
david@pgmasters.net




view thread (16+ messages)  latest in thread

Message-ID: <2da70a91-2a22-9d78-84ba-cba4b71c7541@pgmasters.net>
Permalink:  ../2da70a91-2a22-9d78-84ba-cba4b71c7541@pgmasters.net/
Also on:    postgresql.org/message-id/2da70a91-2a22-9d78-84ba-cba4b71c7541@pgmasters.net

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: david@pgmasters.net, pryzby@telsasoft.com, a.zakirov@postgrespro.ru
  Subject: Re: Re: query logging of prepared statements
  In-Reply-To: <2da70a91-2a22-9d78-84ba-cba4b71c7541@pgmasters.net>

* 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