- Notifications
You must be signed in to change notification settings - Fork5
Commit003d80f
committed
Mark finished Plan nodes with parallel_safe flags.
We'd managed to avoid doing this so far, but it seems pretty obviousthat it would be forced on us some day, and this is much the cleanestway of approaching the open problem that parallel-unsafe subplans arebeing transmitted to parallel workers. Anyway there's no space costdue to alignment considerations, and the time cost is pretty minimalsince we're just copying the flag from the corresponding Path node.(At least in most cases ... some of the klugier spots in createplan.chave to work a bit harder.)In principle we could perhaps get rid of SubPlan.parallel_safe,but I thought it better to keep that in case there are reasons toconsider a SubPlan unsafe even when its child plan is parallel-safe.This patch doesn't actually do anything with the new flags, butI thought I'd commit it separately anyway.Note: although this touches outfuncs/readfuncs, there's no need fora catversion bump because Plan trees aren't stored on disk.Discussion:https://postgr.es/m/87tw5x4vcu.fsf@credativ.de1 parent35b5f7b commit003d80f
File tree
7 files changed
+39
-18
lines changed- src
- backend
- nodes
- optimizer/plan
- include/nodes
7 files changed
+39
-18
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
118 | 118 |
| |
119 | 119 |
| |
120 | 120 |
| |
| 121 | + | |
121 | 122 |
| |
122 | 123 |
| |
123 | 124 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
275 | 275 |
| |
276 | 276 |
| |
277 | 277 |
| |
| 278 | + | |
278 | 279 |
| |
279 | 280 |
| |
280 | 281 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1480 | 1480 |
| |
1481 | 1481 |
| |
1482 | 1482 |
| |
| 1483 | + | |
1483 | 1484 |
| |
1484 | 1485 |
| |
1485 | 1486 |
| |
|
Lines changed: 25 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
91 |
| - | |
| 91 | + | |
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
| |||
920 | 920 |
| |
921 | 921 |
| |
922 | 922 |
| |
| 923 | + | |
| 924 | + | |
| 925 | + | |
923 | 926 |
| |
924 | 927 |
| |
925 | 928 |
| |
| |||
1313 | 1316 |
| |
1314 | 1317 |
| |
1315 | 1318 |
| |
1316 |
| - | |
| 1319 | + | |
| 1320 | + | |
1317 | 1321 |
| |
1318 | 1322 |
| |
1319 | 1323 |
| |
| |||
1572 | 1576 |
| |
1573 | 1577 |
| |
1574 | 1578 |
| |
1575 |
| - | |
| 1579 | + | |
| 1580 | + | |
1576 | 1581 |
| |
1577 | 1582 |
| |
1578 | 1583 |
| |
| |||
1592 | 1597 |
| |
1593 | 1598 |
| |
1594 | 1599 |
| |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
1595 | 1603 |
| |
1596 | 1604 |
| |
1597 |
| - | |
| 1605 | + | |
1598 | 1606 |
| |
1599 | 1607 |
| |
1600 | 1608 |
| |
| |||
1608 | 1616 |
| |
1609 | 1617 |
| |
1610 | 1618 |
| |
| 1619 | + | |
1611 | 1620 |
| |
1612 | 1621 |
| |
1613 | 1622 |
| |
| |||
1984 | 1993 |
| |
1985 | 1994 |
| |
1986 | 1995 |
| |
| 1996 | + | |
1987 | 1997 |
| |
1988 | 1998 |
| |
1989 | 1999 |
| |
| |||
2829 | 2839 |
| |
2830 | 2840 |
| |
2831 | 2841 |
| |
| 2842 | + | |
2832 | 2843 |
| |
2833 | 2844 |
| |
2834 | 2845 |
| |
| |||
2892 | 2903 |
| |
2893 | 2904 |
| |
2894 | 2905 |
| |
| 2906 | + | |
2895 | 2907 |
| |
2896 | 2908 |
| |
2897 | 2909 |
| |
| |||
2936 | 2948 |
| |
2937 | 2949 |
| |
2938 | 2950 |
| |
| 2951 | + | |
2939 | 2952 |
| |
2940 | 2953 |
| |
2941 | 2954 |
| |
| |||
4834 | 4847 |
| |
4835 | 4848 |
| |
4836 | 4849 |
| |
4837 |
| - | |
| 4850 | + | |
4838 | 4851 |
| |
4839 | 4852 |
| |
4840 | 4853 |
| |
| |||
4844 | 4857 |
| |
4845 | 4858 |
| |
4846 | 4859 |
| |
| 4860 | + | |
4847 | 4861 |
| |
4848 | 4862 |
| |
4849 | 4863 |
| |
| |||
4859 | 4873 |
| |
4860 | 4874 |
| |
4861 | 4875 |
| |
| 4876 | + | |
| 4877 | + | |
4862 | 4878 |
| |
4863 | 4879 |
| |
4864 | 4880 |
| |
| |||
4888 | 4904 |
| |
4889 | 4905 |
| |
4890 | 4906 |
| |
| 4907 | + | |
4891 | 4908 |
| |
4892 | 4909 |
| |
4893 | 4910 |
| |
| |||
5696 | 5713 |
| |
5697 | 5714 |
| |
5698 | 5715 |
| |
5699 |
| - | |
| 5716 | + | |
| 5717 | + | |
5700 | 5718 |
| |
5701 | 5719 |
| |
5702 | 5720 |
| |
| |||
5975 | 5993 |
| |
5976 | 5994 |
| |
5977 | 5995 |
| |
| 5996 | + | |
5978 | 5997 |
| |
5979 | 5998 |
| |
5980 | 5999 |
| |
|
Lines changed: 3 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
351 | 351 |
| |
352 | 352 |
| |
353 | 353 |
| |
354 |
| - | |
355 |
| - | |
356 |
| - | |
| 354 | + | |
357 | 355 |
| |
358 |
| - | |
| 356 | + | |
359 | 357 |
| |
360 | 358 |
| |
361 | 359 |
| |
| |||
378 | 376 |
| |
379 | 377 |
| |
380 | 378 |
| |
| 379 | + | |
381 | 380 |
| |
382 | 381 |
| |
383 | 382 |
| |
|
Lines changed: 7 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 |
| - | |
| 61 | + | |
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
| |||
550 | 550 |
| |
551 | 551 |
| |
552 | 552 |
| |
553 |
| - | |
554 |
| - | |
| 553 | + | |
555 | 554 |
| |
556 | 555 |
| |
557 | 556 |
| |
| |||
605 | 604 |
| |
606 | 605 |
| |
607 | 606 |
| |
608 |
| - | |
609 |
| - | |
| 607 | + | |
610 | 608 |
| |
611 | 609 |
| |
612 | 610 |
| |
| |||
635 | 633 |
| |
636 | 634 |
| |
637 | 635 |
| |
638 |
| - | |
| 636 | + | |
639 | 637 |
| |
640 | 638 |
| |
641 | 639 |
| |
| |||
654 | 652 |
| |
655 | 653 |
| |
656 | 654 |
| |
657 |
| - | |
| 655 | + | |
658 | 656 |
| |
659 | 657 |
| |
660 | 658 |
| |
| |||
1218 | 1216 |
| |
1219 | 1217 |
| |
1220 | 1218 |
| |
1221 |
| - | |
| 1219 | + | |
| 1220 | + | |
1222 | 1221 |
| |
1223 | 1222 |
| |
1224 | 1223 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
124 | 124 |
| |
125 | 125 |
| |
126 | 126 |
| |
| 127 | + | |
127 | 128 |
| |
128 | 129 |
| |
129 | 130 |
| |
|
0 commit comments
Comments
(0)