forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6aba63e
committed
Allow the planner-related functions and hook to accept the query string.
This commit adds query_string argument into the planner-related functionsand hook and allows us to pass the query string to them.Currently there is no user of the query string passed. But the upcoming patchfor the planning counters will add the planning hook function intopg_stat_statements and the function will need the query string. So this changewill be necessary for that patch.Also this change is useful for some extensions that want to use the querystring in their planner hook function.Author: Pascal Legrand, Julien RouhaudReviewed-by: Yoshikazu Imai, Tom Lane, Fujii MasaoDiscussion:https://postgr.es/m/CAOBaU_bU1m3_XF5qKYtSj1ua4dxd=FWDyh2SH4rSJAUUfsGmAQ@mail.gmail.comDiscussion:https://postgr.es/m/1583789487074-0.post@n3.nabble.com1 parent4a539a2 commit6aba63e
File tree
13 files changed
+34
-20
lines changed- src
- backend
- commands
- executor
- optimizer/plan
- tcop
- utils/cache
- include
- optimizer
- tcop
13 files changed
+34
-20
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1580 | 1580 |
| |
1581 | 1581 |
| |
1582 | 1582 |
| |
1583 |
| - | |
| 1583 | + | |
| 1584 | + | |
1584 | 1585 |
| |
1585 | 1586 |
| |
1586 | 1587 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
329 | 329 |
| |
330 | 330 |
| |
331 | 331 |
| |
332 |
| - | |
| 332 | + | |
| 333 | + | |
333 | 334 |
| |
334 | 335 |
| |
335 | 336 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
376 | 376 |
| |
377 | 377 |
| |
378 | 378 |
| |
379 |
| - | |
| 379 | + | |
380 | 380 |
| |
381 | 381 |
| |
382 | 382 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
751 | 751 |
| |
752 | 752 |
| |
753 | 753 |
| |
754 |
| - | |
| 754 | + | |
755 | 755 |
| |
756 | 756 |
| |
757 | 757 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
391 | 391 |
| |
392 | 392 |
| |
393 | 393 |
| |
394 |
| - | |
| 394 | + | |
395 | 395 |
| |
396 | 396 |
| |
397 | 397 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
93 |
| - | |
| 93 | + | |
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
510 | 510 |
| |
511 | 511 |
| |
512 | 512 |
| |
| 513 | + | |
513 | 514 |
| |
514 | 515 |
| |
515 | 516 |
| |
|
Lines changed: 6 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
264 | 264 |
| |
265 | 265 |
| |
266 | 266 |
| |
267 |
| - | |
| 267 | + | |
| 268 | + | |
268 | 269 |
| |
269 | 270 |
| |
270 | 271 |
| |
271 | 272 |
| |
272 |
| - | |
| 273 | + | |
273 | 274 |
| |
274 |
| - | |
| 275 | + | |
275 | 276 |
| |
276 | 277 |
| |
277 | 278 |
| |
278 | 279 |
| |
279 |
| - | |
| 280 | + | |
| 281 | + | |
280 | 282 |
| |
281 | 283 |
| |
282 | 284 |
| |
|
Lines changed: 8 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
854 | 854 |
| |
855 | 855 |
| |
856 | 856 |
| |
857 |
| - | |
| 857 | + | |
| 858 | + | |
858 | 859 |
| |
859 | 860 |
| |
860 | 861 |
| |
| |||
871 | 872 |
| |
872 | 873 |
| |
873 | 874 |
| |
874 |
| - | |
| 875 | + | |
875 | 876 |
| |
876 | 877 |
| |
877 | 878 |
| |
| |||
939 | 940 |
| |
940 | 941 |
| |
941 | 942 |
| |
942 |
| - | |
| 943 | + | |
| 944 | + | |
943 | 945 |
| |
944 | 946 |
| |
945 | 947 |
| |
| |||
961 | 963 |
| |
962 | 964 |
| |
963 | 965 |
| |
964 |
| - | |
| 966 | + | |
| 967 | + | |
965 | 968 |
| |
966 | 969 |
| |
967 | 970 |
| |
| |||
1152 | 1155 |
| |
1153 | 1156 |
| |
1154 | 1157 |
| |
1155 |
| - | |
| 1158 | + | |
1156 | 1159 |
| |
1157 | 1160 |
| |
1158 | 1161 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
930 | 930 |
| |
931 | 931 |
| |
932 | 932 |
| |
933 |
| - | |
| 933 | + | |
| 934 | + | |
934 | 935 |
| |
935 | 936 |
| |
936 | 937 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
105 |
| - | |
| 105 | + | |
| 106 | + | |
106 | 107 |
| |
107 | 108 |
| |
108 | 109 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| 27 | + | |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
| |||
37 | 38 |
| |
38 | 39 |
| |
39 | 40 |
| |
40 |
| - | |
| 41 | + | |
| 42 | + | |
41 | 43 |
| |
42 | 44 |
| |
43 | 45 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 |
| - | |
| 55 | + | |
| 56 | + | |
56 | 57 |
| |
57 |
| - | |
| 58 | + | |
| 59 | + | |
58 | 60 |
| |
59 | 61 |
| |
60 | 62 |
| |
|
0 commit comments
Comments
(0)