Re: Generating code for query jumbling through gen_node_support.pl
Peter Eisentraut <peter.eisentraut@enterprisedb.com>
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>,
"Drouvot, Bertrand" <bdrouvot@amazon.com>
Date: 2023-01-26T08:39:05Z
Lists: pgsql-hackers
On 25.01.23 01:08, Michael Paquier wrote: > On Tue, Jan 24, 2023 at 03:57:56PM +0900, Michael Paquier wrote: >> Makes sense. That would be my intention if 0004 is the most >> acceptable and splitting things makes things a bit easier to review. > > There was a silly mistake in 0004 where the jumbling code relied on > compute_query_id rather than utility_query_id, so fixed and rebased as > of v7 attached. Overall, this looks good to me. There are a couple of repetitive comments, like "typmod and collation information are irrelevant for the query jumbling". This applies to all nodes, so we don't need to repeat it for a number of nodes (and then not mention it for other nodes). Maybe there should be a central place somewhere that describes "these kinds of fields should normally be ignored".
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