- Notifications
You must be signed in to change notification settings - Fork28
Commit7d8f698
committed
Fix parallel query so it doesn't spoil row estimates above Gather.
Commit45be99f removed GatherPath'snum_workers field, but this is entirely bogus. Normally, a path'sparallel_workers flag is supposed to indicate the number of workersthat it wants, and should be 0 for a non-partial path. In thatcommit, I mistakenly thought that GatherPath could also use that fieldto indicate the number of workers that it would try to start, butthat's disastrous, because then it can propagate up to higher nodes inthe plan tree, which will then get incorrect rowcounts because theparallel_workers flag is involved in computing those values. Repairby putting the separate field back.Report by Tomas Vondra. Patch by me, reviewed by Amit Kapila.Discussion:http://postgr.es/m/f91b4a44-f739-04bd-c4b6-f135bd643669@2ndquadrant.com1 parent2113ac4 commit7d8f698
File tree
4 files changed
+7
-4
lines changed- src
- backend
- nodes
- optimizer
- plan
- util
- include/nodes
4 files changed
+7
-4
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1870 | 1870 |
| |
1871 | 1871 |
| |
1872 | 1872 |
| |
| 1873 | + | |
1873 | 1874 |
| |
1874 | 1875 |
| |
1875 | 1876 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1446 | 1446 |
| |
1447 | 1447 |
| |
1448 | 1448 |
| |
1449 |
| - | |
| 1449 | + | |
1450 | 1450 |
| |
1451 | 1451 |
| |
1452 | 1452 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1742 | 1742 |
| |
1743 | 1743 |
| |
1744 | 1744 |
| |
1745 |
| - | |
| 1745 | + | |
1746 | 1746 |
| |
1747 | 1747 |
| |
1748 | 1748 |
| |
| 1749 | + | |
1749 | 1750 |
| |
1750 | 1751 |
| |
1751 |
| - | |
| 1752 | + | |
1752 | 1753 |
| |
1753 |
| - | |
1754 | 1754 |
| |
| 1755 | + | |
1755 | 1756 |
| |
1756 | 1757 |
| |
1757 | 1758 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1228 | 1228 |
| |
1229 | 1229 |
| |
1230 | 1230 |
| |
| 1231 | + | |
1231 | 1232 |
| |
1232 | 1233 |
| |
1233 | 1234 |
| |
|
0 commit comments
Comments
(0)