From: Julien Rouhaud <rjuju123@gmail.com>
To: Drouvot, Bertrand <bertranddrouvot.pg@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Fujii Masao <masao.fujii@oss.nttdata.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: Mon, 10 Oct 2022 21:16:47 +0800
Message-ID: <20221010131647.dflnfd4rhqilldoj@jrouhaud> (raw)
In-Reply-To: <d391a8cf-7168-a91c-c8be-9713b2c6f6be@gmail.com>
References: <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>
<Yz+nUUVc3UtJtU6q@paquier.xyz>
<d391a8cf-7168-a91c-c8be-9713b2c6f6be@gmail.com>
Hi,
On Mon, Oct 10, 2022 at 03:04:57PM +0200, Drouvot, Bertrand wrote:
>
> On 10/7/22 6:13 AM, Michael Paquier wrote:
> >
> > Probably. One part that may be tricky though is the location of the
> > constants we'd like to make generic, but perhaps this could be handled
> > by using a dedicated variable type that just maps to int?
>
> It looks to me that we'd also need to teach the perl parser which fields per
> statements struct need to be jumbled (or more probably which ones to exclude
> from the jumbling, for example funccall in CallStmt). Not sure yet how to
> teach the perl parser, but I'll build this list first to help decide for a
> right approach, unless you already have some thoughts about it?
Unless I'm missing something both can be handled using pg_node_attr()
annotations that already exists?
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: rjuju123@gmail.com, bertranddrouvot.pg@gmail.com, michael@paquier.xyz, tgl@sss.pgh.pa.us, masao.fujii@oss.nttdata.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: <20221010131647.dflnfd4rhqilldoj@jrouhaud>
References: <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> <Yz+nUUVc3UtJtU6q@paquier.xyz> <d391a8cf-7168-a91c-c8be-9713b2c6f6be@gmail.com> <20221010131647.dflnfd4rhqilldoj@jrouhaud>
* 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