- Notifications
You must be signed in to change notification settings - Fork5
Commit598aa19
committed
Still another try at fixing scanjoin_target insertion into parallel plans.
The previous code neglected the fact that the scanjoin_target mightcarry sortgroupref labelings that we need to absorb. Instead, docreate_projection_path() unconditionally, and tweak the path's costestimate after the fact. (I'm now convinced that we ought to refactorthe way we account for sometimes not needing a separate projection step,but right now is not the time for that sort of cleanup.)Problem identified by Amit Kapila, patch by me.1 parent7e81a18 commit598aa19
File tree
3 files changed
+43
-20
lines changed- src
- backend/optimizer/plan
- test/regress
- expected
- sql
3 files changed
+43
-20
lines changedLines changed: 21 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1788 | 1788 |
| |
1789 | 1789 |
| |
1790 | 1790 |
| |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
1791 | 1794 |
| |
1792 | 1795 |
| |
1793 | 1796 |
| |
1794 |
| - | |
1795 |
| - | |
1796 |
| - | |
1797 |
| - | |
1798 |
| - | |
1799 |
| - | |
1800 |
| - | |
| 1797 | + | |
| 1798 | + | |
1801 | 1799 |
| |
1802 |
| - | |
1803 |
| - | |
1804 |
| - | |
1805 |
| - | |
1806 | 1800 |
| |
1807 | 1801 |
| |
1808 | 1802 |
| |
1809 | 1803 |
| |
1810 |
| - | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
1811 | 1814 |
| |
1812 |
| - | |
1813 |
| - | |
1814 |
| - | |
1815 |
| - | |
1816 |
| - | |
1817 |
| - | |
| 1815 | + | |
1818 | 1816 |
| |
1819 | 1817 |
| |
1820 | 1818 |
| |
| 1819 | + | |
| 1820 | + | |
| 1821 | + | |
| 1822 | + | |
| 1823 | + | |
1821 | 1824 |
| |
1822 | 1825 |
| |
1823 | 1826 |
| |
|
Lines changed: 17 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
| 12 | + | |
12 | 13 |
| |
13 | 14 |
| |
14 | 15 |
| |
| |||
71 | 72 |
| |
72 | 73 |
| |
73 | 74 |
| |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
74 | 90 |
| |
75 | 91 |
| |
76 | 92 |
| |
|
Lines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
| 15 | + | |
15 | 16 |
| |
16 | 17 |
| |
17 | 18 |
| |
| |||
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 |
| |
33 | 37 |
| |
34 | 38 |
| |
|
0 commit comments
Comments
(0)