Re: Generating code for query jumbling through gen_node_support.pl
Andrei Lepikhov <a.lepikhov@postgrespro.ru>
From: Andrey Lepikhov <a.lepikhov@postgrespro.ru>
To: Michael Paquier <michael@paquier.xyz>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>,
Postgres hackers <pgsql-hackers@lists.postgresql.org>,
"Drouvot, Bertrand" <bdrouvot@amazon.com>,
"Jonathan S. Katz" <jkatz@postgresql.org>
Date: 2023-07-11T06:44:39Z
Lists: pgsql-hackers
On 11/7/2023 12:35, Michael Paquier wrote: > On Tue, Jul 11, 2023 at 12:29:29PM +0700, Andrey Lepikhov wrote: >> I vote for only one method based on a query tree structure. > > Noted > >> BTW, did you think about different algorithms of queryId generation? > > Not really, except if you are referring to the possibility of being > able to handle differently different portions of the nodes depending > on a context given by the callers willing to do a query jumbling > computation. (For example, choose to *not* silence the Const nodes, > etc.) Yes, I have two requests on different queryId algorithms: 1. With suppressed Const nodes. 2. With replacement of Oids with full names - to give a chance to see the same queryId at different instances for the same query. It is quite trivial to implement, but not easy in support. > >> Auto-generated queryId code can open a way for extensions to have >> easy-supporting custom queryIds. > > Extensions can control that at some extent, already. > -- > Michael -- regards, Andrey Lepikhov Postgres Professional
Commits
-
Mark more nodes with attribute no_query_jumble
- 2a507f6fd8b7 16.0 landed
-
Include values of A_Const nodes in query jumbling
- 9ba37b2cb6a1 16.0 landed
-
Generate code for query jumbling through gen_node_support.pl
- 3db72ebcbe20 16.0 landed
-
Rework format of comments in headers for nodes
- 5d29d525ffe0 16.0 landed
-
Move queryjumble.c code to src/backend/nodes/
- 8eba3e3f0208 16.0 landed
-
Fix some compiler warnings in aset.c and generation.c
- b82557ecc2eb 16.0 cited
-
Reformat some node comments
- 835d476fd21b 16.0 cited