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-20T04:35:15Z
Lists: pgsql-hackers
Attachments
- v4-0001-Rework-format-of-comments-for-nodes.patch (text/x-diff) patch v4-0001
- v4-0002-Move-query-jumble-code-to-src-backend-nodes.patch (text/x-diff) patch v4-0002
- v4-0003-Support-for-automated-query-jumble-with-all-Nodes.patch (text/x-diff) patch v4-0003
- v4-0004-Add-GUC-utility_query_id.patch (text/x-diff) patch v4-0004
On Thu, Jan 19, 2023 at 09:42:03AM +0100, Peter Eisentraut wrote: > I see that in the 0003 patch, most location fields now have an explicit > markup with query_jumble_ignore. I thought we had previously resolved to > consider location fields to be automatically ignored unless explicitly > included (like for the Const node). This appears to invert that? Am I > missing something? As a result, I have rebased the patch set to use the two-attribute approach: query_jumble_ignore and query_jumble_location. On top of the three previous patches, I am adding 0004 to implement a GUC able to switch the computation of the utility statements between what I am calling "string" to compute the query IDs based on the hash of the query string and the previous default, or "jumble", to use the parsed tree, with a few more tests to see the difference. Perhaps it is not worth bothering, but it could be possible that some users don't want to pay the penalty of doing the query jumbling with the parsed tree for utilities, as well.. -- 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