Re: Generating code for query jumbling through gen_node_support.pl
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>, "Drouvot, Bertrand" <bdrouvot@amazon.com>
Date: 2023-01-31T06:40:56Z
Lists: pgsql-hackers
On Mon, Jan 30, 2023 at 11:48:45AM +0100, Peter Eisentraut wrote: > I'm going to set this thread as "Ready for Committer". Either wait a bit > for more feedback on this topic, or just go ahead with either solution. We > can leave it as a semi-open item for reconsideration later. All the measurements I have done for the last couple of days point me in the direction that there is no need for an extra node based on the averaged computation times (did a few more today with some long CREATE FUNCTION, VIEW or event trigger queries, for example). Agreed to add the extra option as something to consider at some point during beta, as long as it is fresh. I am not convinced that it will be necessary but let's see how it goes. While reviewing all the nodes, I have noticed two mistakes for a few things marked as query_jumble_ignore but they should not: - orderClause in WindowClause - aliascolnames in CommonTableExpr The rest was fine. varnullingrels has been added very recently, and there was in queryjumblefuncs.c a comment explaining why it should be ignored. This has been moved to nodes.h, like the others. With all that in mind, I have spent my day polishing that and doing a close lookup, and the patch has been applied. Thanks a lot! -- Michael
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