Commit b9527e9
committed
First phase of plan-invalidation project: create a plan cache management
module and teach PREPARE and protocol-level prepared statements to use it.
In service of this, rearrange utility-statement processing so that parse
analysis does not assume table schemas can't change before execution for
utility statements (necessary because we don't attempt to re-acquire locks
for utility statements when reusing a stored plan). This requires some
refactoring of the ProcessUtility API, but it ends up cleaner anyway,
for instance we can get rid of the QueryContext global.
Still to do: fix up SPI and related code to use the plan cache; I'm tempted to
try to make SQL functions use it too. Also, there are at least some aspects
of system state that we want to ensure remain the same during a replan as in
the original processing; search_path certainly ought to behave that way for
instance, and perhaps there are others.1 parent f84308f commit b9527e9
File tree
61 files changed
+2478
-1354
lines changed- src
- backend
- access/transam
- bootstrap
- commands
- executor
- nodes
- optimizer/util
- parser
- postmaster
- rewrite
- tcop
- utils
- cache
- init
- mmgr
- resowner
- include
- access
- commands
- nodes
- parser
- rewrite
- tcop
- utils
- test/regress
- expected
- sql
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
61 files changed
+2478
-1354
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
2504 | 2504 | | |
2505 | 2505 | | |
2506 | 2506 | | |
2507 | | - | |
2508 | | - | |
2509 | | - | |
| 2507 | + | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
2510 | 2511 | | |
2511 | 2512 | | |
2512 | | - | |
| 2513 | + | |
2513 | 2514 | | |
2514 | 2515 | | |
2515 | 2516 | | |
| |||
2532 | 2533 | | |
2533 | 2534 | | |
2534 | 2535 | | |
2535 | | - | |
2536 | | - | |
2537 | | - | |
| 2536 | + | |
2538 | 2537 | | |
2539 | | - | |
| 2538 | + | |
2540 | 2539 | | |
2541 | 2540 | | |
2542 | 2541 | | |
| |||
2562 | 2561 | | |
2563 | 2562 | | |
2564 | 2563 | | |
2565 | | - | |
2566 | | - | |
2567 | | - | |
| 2564 | + | |
| 2565 | + | |
| 2566 | + | |
2568 | 2567 | | |
2569 | 2568 | | |
2570 | | - | |
| 2569 | + | |
2571 | 2570 | | |
2572 | 2571 | | |
2573 | 2572 | | |
| |||
2582 | 2581 | | |
2583 | 2582 | | |
2584 | 2583 | | |
2585 | | - | |
2586 | | - | |
2587 | | - | |
| 2584 | + | |
2588 | 2585 | | |
2589 | | - | |
| 2586 | + | |
2590 | 2587 | | |
| 2588 | + | |
2591 | 2589 | | |
2592 | 2590 | | |
2593 | 2591 | | |
| |||
2602 | 2600 | | |
2603 | 2601 | | |
2604 | 2602 | | |
2605 | | - | |
2606 | | - | |
| 2603 | + | |
| 2604 | + | |
2607 | 2605 | | |
2608 | 2606 | | |
2609 | | - | |
| 2607 | + | |
2610 | 2608 | | |
2611 | 2609 | | |
2612 | 2610 | | |
| |||
2618 | 2616 | | |
2619 | 2617 | | |
2620 | 2618 | | |
2621 | | - | |
| 2619 | + | |
2622 | 2620 | | |
2623 | 2621 | | |
2624 | 2622 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
716 | | - | |
| 716 | + | |
717 | 717 | | |
718 | 718 | | |
719 | 719 | | |
| |||
982 | 982 | | |
983 | 983 | | |
984 | 984 | | |
985 | | - | |
986 | 985 | | |
| 986 | + | |
987 | 987 | | |
988 | 988 | | |
989 | 989 | | |
990 | | - | |
991 | | - | |
992 | 990 | | |
993 | 991 | | |
994 | 992 | | |
| |||
998 | 996 | | |
999 | 997 | | |
1000 | 998 | | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
1004 | | - | |
1005 | | - | |
1006 | | - | |
1007 | 999 | | |
1008 | | - | |
1009 | | - | |
| 1000 | + | |
| 1001 | + | |
1010 | 1002 | | |
1011 | | - | |
1012 | | - | |
| 1003 | + | |
| 1004 | + | |
1013 | 1005 | | |
1014 | 1006 | | |
1015 | | - | |
1016 | | - | |
| 1007 | + | |
1017 | 1008 | | |
1018 | | - | |
1019 | | - | |
1020 | | - | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
| 1009 | + | |
| 1010 | + | |
1028 | 1011 | | |
1029 | 1012 | | |
1030 | 1013 | | |
| |||
1033 | 1016 | | |
1034 | 1017 | | |
1035 | 1018 | | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
1036 | 1025 | | |
1037 | 1026 | | |
1038 | 1027 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 100 | | |
104 | 101 | | |
105 | 102 | | |
| |||
545 | 542 | | |
546 | 543 | | |
547 | 544 | | |
548 | | - | |
549 | | - | |
550 | 545 | | |
551 | 546 | | |
552 | 547 | | |
| |||
0 commit comments