forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit080313f

Amit Kapila
Don't shut down Gather[Merge] early under Limit.
Revert part of commit19df170.Early shutdown was added by that commit so that we could collectstatistics from workers, but unfortunately, it interacted badly withrescans. The problem is that we ended up destroying the parallel contextwhich is required for rescans. This leads to rescans of a Limit node overa Gather node to produce unpredictable results as it tries to accessdestroyed parallel context. By reverting the early shutdown code, wemight lose statistics in some cases of Limit over Gather [Merge], but thatwill require further study to fix.Reported-by: Jerry SieversDiagnosed-by: Thomas MunroAuthor: Amit Kapila, testcase by Vignesh CBackpatch-through: 9.6Discussion:https://postgr.es/m/87ims2amh6.fsf@jsievers.enova.com1 parent0d3c3aa commit080313f
File tree
3 files changed
+67
-10
lines changed- src
- backend/executor
- test/regress
- expected
- sql
3 files changed
+67
-10
lines changedLines changed: 6 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
129 | 129 |
| |
130 | 130 |
| |
131 | 131 |
| |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
132 | 138 |
| |
133 | 139 |
| |
134 | 140 |
| |
135 | 141 |
| |
136 | 142 |
| |
137 |
| - | |
138 |
| - | |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 |
| - | |
145 | 143 |
| |
146 | 144 |
| |
147 | 145 |
| |
|
Lines changed: 40 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
455 | 455 |
| |
456 | 456 |
| |
457 | 457 |
| |
458 |
| - | |
| 458 | + | |
459 | 459 |
| |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
460 | 497 |
| |
| 498 | + | |
| 499 | + | |
461 | 500 |
| |
462 | 501 |
| |
463 | 502 |
| |
|
Lines changed: 21 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
171 |
| - | |
| 171 | + | |
172 | 172 |
| |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
173 | 191 |
| |
| 192 | + | |
| 193 | + | |
174 | 194 |
| |
175 | 195 |
| |
176 | 196 |
| |
|
0 commit comments
Comments
(0)