pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Drouvot, Bertrand <bertranddrouvot.pg@gmail.com>
Cc: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: Julien Rouhaud <rjuju123@gmail.com>
Cc: Jeremy Schneider <schnjere@amazon.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Imseih (AWS), Sami <simseih@amazon.com>
Subject: Re: Query Jumbling for CALL and SET utility statements
Date: Thu, 06 Oct 2022 23:51:52 -0400
Message-ID: <3088762.1665114712@sss.pgh.pa.us> (raw)
In-Reply-To: <Yz+f2VFqbDELGm2j@paquier.xyz>
References: <20220908065012.l3bd2np7wj52cxco@jrouhaud>
	<c65f1c67-bae4-9658-9206-f11e9c6f7d11@amazon.com>
	<20220908112919.2ytxpkitiw6lt2u6@jrouhaud>
	<a16d303f-39ad-319c-18ff-85b78b106fe1@amazon.com>
	<a0d66747-3f8c-5346-5baa-61299e2cb4da@amazon.com>
	<37d32e91-4a08-afaf-a3a8-fd0578e4db50@oss.nttdata.com>
	<706ee610-4297-453b-f6f2-1e79161414f6@gmail.com>
	<6d0d8a57-0e9c-7fcb-5072-aae544dafa5c@gmail.com>
	<Yz54LU3WEYiDKS1R@paquier.xyz>
	<66be1104-164f-dcb8-6c43-f03a68a139a7@gmail.com>
	<Yz+f2VFqbDELGm2j@paquier.xyz>

Michael Paquier <michael@paquier.xyz> writes:
> While studying a bit more this thread, I've been reminded of the fact
> that this would treat different flavors of BEGIN/COMMIT commands (mix
> of upper/lower characters, etc.) as different entries in
> pg_stat_statements, and it feels inconsistent to me that we'd begin 
> jumbling the 2PC and savepoint commands with their nodes but not do
> that for the rest of the commands, even if, as mentioned upthread,
> applications may not mix grammars.

I've been thinking since the beginning of this thread that there
was no coherent, defensible rationale being offered for jumbling
some utility statements and not others.

I wonder if the answer is to jumble them all.  We avoided that
up to now because it would imply a ton of manual effort and
future code maintenance ... but now that the backend/nodes/
infrastructure is largely auto-generated, could we auto-generate
the jumbling code?

			regards, tom lane





view thread (45+ messages)  latest in thread

Message-ID: <3088762.1665114712@sss.pgh.pa.us>
Permalink:  ../3088762.1665114712@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3088762.1665114712@sss.pgh.pa.us

 · 

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-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, michael@paquier.xyz, bertranddrouvot.pg@gmail.com, masao.fujii@oss.nttdata.com, rjuju123@gmail.com, schnjere@amazon.com, pavel.stehule@gmail.com, andres@anarazel.de, simseih@amazon.com
  Subject: Re: Query Jumbling for CALL and SET utility statements
  In-Reply-To: <3088762.1665114712@sss.pgh.pa.us>
  References: <20220908065012.l3bd2np7wj52cxco@jrouhaud> <c65f1c67-bae4-9658-9206-f11e9c6f7d11@amazon.com> <20220908112919.2ytxpkitiw6lt2u6@jrouhaud> <a16d303f-39ad-319c-18ff-85b78b106fe1@amazon.com> <a0d66747-3f8c-5346-5baa-61299e2cb4da@amazon.com> <37d32e91-4a08-afaf-a3a8-fd0578e4db50@oss.nttdata.com> <706ee610-4297-453b-f6f2-1e79161414f6@gmail.com> <6d0d8a57-0e9c-7fcb-5072-aae544dafa5c@gmail.com> <Yz54LU3WEYiDKS1R@paquier.xyz> <66be1104-164f-dcb8-6c43-f03a68a139a7@gmail.com> <Yz+f2VFqbDELGm2j@paquier.xyz> <3088762.1665114712@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