Commit 2a507f6
committed
Mark more nodes with attribute no_query_jumble
This commit removes most of the Plan and Path nodes, which should never
be included in the query jumbling because we ignore these in Query
nodes. This is facilitated by making no_query_jumble an inherited
attribute, like no_copy, no_equal and no_read when the supertype of a
node is found as marked with that.
RawStmt is not used in parsed queries, so it can be removed from the
query jumbling. A couple of nodes defined in pathnodes.h, plannodes.h
and primnodes.h with NodeTag as supertype need to be marked
individually.
Forcing the execution of the query jumbling code with compute_query_id =
auto while pg_stat_statements is loaded brings the code coverage of
queryjumblefuncs.funcs.c to 95.6%.
The core code does not yet include a way to enforce the execution in
query jumbling except in pg_stat_statements, so the numbers I am
mentioning above will not reflect on the default coverage report with
just what is done in this commit.
Reported-by: Tom Lane
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/3344827.1675809127@sss.pgh.pa.us1 parent 6ded4a5 commit 2a507f6Copy full SHA for 2a507f6
File tree
Expand file treeCollapse file tree
7 files changed
+54
-39
lines changedOpen diff view settings
Filter options
- src
- backend/nodes
- include
- nodes
- utils
Expand file treeCollapse file tree
7 files changed
+54
-39
lines changedOpen diff view settings
Collapse file
src/backend/nodes/gen_node_support.pl
Copy file name to clipboardExpand all lines: src/backend/nodes/gen_node_support.pl+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
121 | 121 | |
122 | 122 | |
123 | 123 | |
124 | | - |
| 124 | + |
125 | 125 | |
126 | 126 | |
127 | 127 | |
| ||
422 | 422 | |
423 | 423 | |
424 | 424 | |
| 425 | + |
| 426 | + |
425 | 427 | |
426 | 428 | |
427 | 429 | |
|
Collapse file
+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
77 | 77 | |
78 | 78 | |
79 | 79 | |
80 | | - |
81 | | - |
82 | | - |
83 | | - |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
84 | 84 | |
85 | 85 | |
86 | 86 | |
|
Collapse file
src/include/nodes/parsenodes.h
Copy file name to clipboardExpand all lines: src/include/nodes/parsenodes.h+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1728 | 1728 | |
1729 | 1729 | |
1730 | 1730 | |
| 1731 | + |
| 1732 | + |
| 1733 | + |
1731 | 1734 | |
1732 | 1735 | |
1733 | 1736 | |
| 1737 | + |
| 1738 | + |
1734 | 1739 | |
1735 | 1740 | |
1736 | 1741 | |
|
Collapse file
src/include/nodes/pathnodes.h
Copy file name to clipboardExpand all lines: src/include/nodes/pathnodes.h+29-25Lines changed: 29 additions & 25 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
94 | 94 | |
95 | 95 | |
96 | 96 | |
97 | | - |
| 97 | + |
98 | 98 | |
99 | 99 | |
100 | 100 | |
| ||
194 | 194 | |
195 | 195 | |
196 | 196 | |
197 | | - |
| 197 | + |
198 | 198 | |
199 | 199 | |
200 | 200 | |
| ||
853 | 853 | |
854 | 854 | |
855 | 855 | |
856 | | - |
| 856 | + |
857 | 857 | |
858 | 858 | |
859 | 859 | |
| ||
1098 | 1098 | |
1099 | 1099 | |
1100 | 1100 | |
1101 | | - |
| 1101 | + |
1102 | 1102 | |
1103 | 1103 | |
1104 | 1104 | |
| ||
1208 | 1208 | |
1209 | 1209 | |
1210 | 1210 | |
1211 | | - |
| 1211 | + |
1212 | 1212 | |
1213 | 1213 | |
1214 | 1214 | |
| ||
1258 | 1258 | |
1259 | 1259 | |
1260 | 1260 | |
1261 | | - |
| 1261 | + |
1262 | 1262 | |
1263 | 1263 | |
1264 | 1264 | |
| ||
1309 | 1309 | |
1310 | 1310 | |
1311 | 1311 | |
1312 | | - |
| 1312 | + |
1313 | 1313 | |
1314 | 1314 | |
1315 | 1315 | |
| ||
1371 | 1371 | |
1372 | 1372 | |
1373 | 1373 | |
1374 | | - |
| 1374 | + |
1375 | 1375 | |
1376 | 1376 | |
1377 | 1377 | |
| ||
1422 | 1422 | |
1423 | 1423 | |
1424 | 1424 | |
1425 | | - |
| 1425 | + |
1426 | 1426 | |
1427 | 1427 | |
1428 | 1428 | |
| ||
1455 | 1455 | |
1456 | 1456 | |
1457 | 1457 | |
1458 | | - |
| 1458 | + |
1459 | 1459 | |
1460 | 1460 | |
1461 | 1461 | |
| ||
1503 | 1503 | |
1504 | 1504 | |
1505 | 1505 | |
1506 | | - |
| 1506 | + |
1507 | 1507 | |
1508 | 1508 | |
1509 | 1509 | |
| ||
1550 | 1550 | |
1551 | 1551 | |
1552 | 1552 | |
1553 | | - |
| 1553 | + |
1554 | 1554 | |
1555 | 1555 | |
1556 | 1556 | |
| ||
1596 | 1596 | |
1597 | 1597 | |
1598 | 1598 | |
1599 | | - |
| 1599 | + |
1600 | 1600 | |
1601 | 1601 | |
1602 | 1602 | |
| ||
1730 | 1730 | |
1731 | 1731 | |
1732 | 1732 | |
1733 | | - |
| 1733 | + |
1734 | 1734 | |
1735 | 1735 | |
1736 | 1736 | |
| ||
2231 | 2231 | |
2232 | 2232 | |
2233 | 2233 | |
2234 | | - |
| 2234 | + |
2235 | 2235 | |
2236 | 2236 | |
2237 | 2237 | |
| ||
2240 | 2240 | |
2241 | 2241 | |
2242 | 2242 | |
2243 | | - |
| 2243 | + |
2244 | 2244 | |
2245 | 2245 | |
2246 | 2246 | |
| ||
2509 | 2509 | |
2510 | 2510 | |
2511 | 2511 | |
2512 | | - |
| 2512 | + |
2513 | 2513 | |
2514 | 2514 | |
2515 | 2515 | |
| ||
2724 | 2724 | |
2725 | 2725 | |
2726 | 2726 | |
| 2727 | + |
| 2728 | + |
2727 | 2729 | |
2728 | 2730 | |
2729 | 2731 | |
| ||
2825 | 2827 | |
2826 | 2828 | |
2827 | 2829 | |
2828 | | - |
| 2830 | + |
2829 | 2831 | |
2830 | 2832 | |
2831 | 2833 | |
| ||
2853 | 2855 | |
2854 | 2856 | |
2855 | 2857 | |
2856 | | - |
| 2858 | + |
2857 | 2859 | |
2858 | 2860 | |
2859 | 2861 | |
| ||
2892 | 2894 | |
2893 | 2895 | |
2894 | 2896 | |
| 2897 | + |
| 2898 | + |
2895 | 2899 | |
2896 | 2900 | |
2897 | 2901 | |
| ||
2967 | 2971 | |
2968 | 2972 | |
2969 | 2973 | |
2970 | | - |
| 2974 | + |
2971 | 2975 | |
2972 | 2976 | |
2973 | 2977 | |
| ||
3005 | 3009 | |
3006 | 3010 | |
3007 | 3011 | |
3008 | | - |
| 3012 | + |
3009 | 3013 | |
3010 | 3014 | |
3011 | 3015 | |
| ||
3038 | 3042 | |
3039 | 3043 | |
3040 | 3044 | |
3041 | | - |
| 3045 | + |
3042 | 3046 | |
3043 | 3047 | |
3044 | 3048 | |
| ||
3116 | 3120 | |
3117 | 3121 | |
3118 | 3122 | |
3119 | | - |
| 3123 | + |
3120 | 3124 | |
3121 | 3125 | |
3122 | 3126 | |
| ||
3296 | 3300 | |
3297 | 3301 | |
3298 | 3302 | |
3299 | | - |
| 3303 | + |
3300 | 3304 | |
3301 | 3305 | |
3302 | 3306 | |
| ||
3330 | 3334 | |
3331 | 3335 | |
3332 | 3336 | |
3333 | | - |
| 3337 | + |
3334 | 3338 | |
3335 | 3339 | |
3336 | 3340 | |
|
Collapse file
src/include/nodes/plannodes.h
Copy file name to clipboardExpand all lines: src/include/nodes/plannodes.h+8-8Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
46 | 46 | |
47 | 47 | |
48 | 48 | |
49 | | - |
| 49 | + |
50 | 50 | |
51 | 51 | |
52 | 52 | |
| ||
122 | 122 | |
123 | 123 | |
124 | 124 | |
125 | | - |
| 125 | + |
126 | 126 | |
127 | 127 | |
128 | 128 | |
| ||
813 | 813 | |
814 | 814 | |
815 | 815 | |
816 | | - |
| 816 | + |
817 | 817 | |
818 | 818 | |
819 | 819 | |
| ||
1377 | 1377 | |
1378 | 1378 | |
1379 | 1379 | |
1380 | | - |
| 1380 | + |
1381 | 1381 | |
1382 | 1382 | |
1383 | 1383 | |
| ||
1425 | 1425 | |
1426 | 1426 | |
1427 | 1427 | |
1428 | | - |
| 1428 | + |
1429 | 1429 | |
1430 | 1430 | |
1431 | 1431 | |
| ||
1452 | 1452 | |
1453 | 1453 | |
1454 | 1454 | |
1455 | | - |
| 1455 | + |
1456 | 1456 | |
1457 | 1457 | |
1458 | 1458 | |
| ||
1495 | 1495 | |
1496 | 1496 | |
1497 | 1497 | |
1498 | | - |
| 1498 | + |
1499 | 1499 | |
1500 | 1500 | |
1501 | 1501 | |
| ||
1570 | 1570 | |
1571 | 1571 | |
1572 | 1572 | |
1573 | | - |
| 1573 | + |
1574 | 1574 | |
1575 | 1575 | |
1576 | 1576 | |
|
Collapse file
src/include/nodes/primnodes.h
Copy file name to clipboardExpand all lines: src/include/nodes/primnodes.h+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
982 | 982 | |
983 | 983 | |
984 | 984 | |
| 985 | + |
| 986 | + |
985 | 987 | |
986 | 988 | |
987 | 989 | |
| ||
1029 | 1031 | |
1030 | 1032 | |
1031 | 1033 | |
| 1034 | + |
| 1035 | + |
1032 | 1036 | |
1033 | 1037 | |
1034 | 1038 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
268 | 268 | |
269 | 269 | |
270 | 270 | |
271 | | - |
| 271 | + |
272 | 272 | |
273 | 273 | |
274 | 274 | |
|
0 commit comments