forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfd7c0fa
committed
Fix crashes on plans with multiple Gather (Merge) nodes.
es_query_dsa turns out to be broken by design, because it supposesthat there is only one DSA for the whole query, whereas there isactually one per Gather (Merge) node. For now, work around thatproblem by setting and clearing the pointer around the sections ofcode that might need it. It's probably a better idea to get rid ofes_query_dsa altogether in favor of having each node keep trackindividually of which DSA is relevant, but that seems like more thanwe would want to back-patch.Thomas Munro, reviewed and tested by Andreas Seltenreich, AmitKapila, and by me.Discussion:http://postgr.es/m/CAEepm=1U6as=brnVvMNixEV2tpi8NuyQoTmO8Qef0-VV+=7MDA@mail.gmail.com1 parent7731c32 commitfd7c0fa
File tree
3 files changed
+24
-12
lines changed- src/backend/executor
3 files changed
+24
-12
lines changedLines changed: 14 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
330 | 330 |
| |
331 | 331 |
| |
332 | 332 |
| |
333 |
| - | |
| 333 | + | |
334 | 334 |
| |
335 | 335 |
| |
336 | 336 |
| |
| |||
341 | 341 |
| |
342 | 342 |
| |
343 | 343 |
| |
344 |
| - | |
345 |
| - | |
| 344 | + | |
| 345 | + | |
346 | 346 |
| |
347 | 347 |
| |
348 | 348 |
| |
| |||
736 | 736 |
| |
737 | 737 |
| |
738 | 738 |
| |
739 |
| - | |
740 |
| - | |
741 |
| - | |
742 |
| - | |
743 |
| - | |
744 |
| - | |
745 | 739 |
| |
746 | 740 |
| |
747 | 741 |
| |
| |||
750 | 744 |
| |
751 | 745 |
| |
752 | 746 |
| |
753 |
| - | |
| 747 | + | |
| 748 | + | |
754 | 749 |
| |
755 | 750 |
| |
756 | 751 |
| |
| |||
763 | 758 |
| |
764 | 759 |
| |
765 | 760 |
| |
| 761 | + | |
| 762 | + | |
| 763 | + | |
766 | 764 |
| |
| 765 | + | |
767 | 766 |
| |
768 | 767 |
| |
769 | 768 |
| |
| |||
832 | 831 |
| |
833 | 832 |
| |
834 | 833 |
| |
835 |
| - | |
| 834 | + | |
836 | 835 |
| |
837 | 836 |
| |
838 | 837 |
| |
839 | 838 |
| |
840 | 839 |
| |
841 | 840 |
| |
842 |
| - | |
| 841 | + | |
| 842 | + | |
843 | 843 |
| |
844 | 844 |
| |
845 | 845 |
| |
846 | 846 |
| |
| 847 | + | |
847 | 848 |
| |
| 849 | + | |
848 | 850 |
| |
849 | 851 |
| |
850 | 852 |
| |
|
Lines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
277 | 277 |
| |
278 | 278 |
| |
279 | 279 |
| |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
280 | 285 |
| |
| 286 | + | |
281 | 287 |
| |
282 | 288 |
| |
283 | 289 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
637 | 637 |
| |
638 | 638 |
| |
639 | 639 |
| |
| 640 | + | |
640 | 641 |
| |
| 642 | + | |
| 643 | + | |
641 | 644 |
| |
| 645 | + | |
642 | 646 |
| |
643 | 647 |
| |
644 | 648 |
| |
|
0 commit comments
Comments
(0)