forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2ccd8fb
committed
Consider parallel awareness when removing single-child Appends
8edd0e7 added some code to remove Append and MergeAppend nodes when theycontained a single child node. As it turned out, this was unsafe to dowhen the Append/MergeAppend was parallel_aware and the child node was not.Removing the Append/MergeAppend, in this case, could lead to the child planbeing called multiple times by parallel workers when it was unsafe to doso.Here we fix this by just not removing the Append/MergeAppend when theparallel_aware flag of the parent and child node don't match.Reported-by: Yura SokolovBug: #17335Discussion:https://postgr.es/m/b59605fecb20ba9ea94e70ab60098c237c870628.camel%40postgrespro.ruBackpatch-through: 12, where8edd0e7 was first introduced1 parentfcc4340 commit2ccd8fb
1 file changed
+20
-4
lines changedLines changed: 20 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1350 | 1350 |
| |
1351 | 1351 |
| |
1352 | 1352 |
| |
1353 |
| - | |
1354 |
| - | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
1355 | 1363 |
| |
1356 | 1364 |
| |
1357 | 1365 |
| |
| |||
1412 | 1420 |
| |
1413 | 1421 |
| |
1414 | 1422 |
| |
1415 |
| - | |
1416 |
| - | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
1417 | 1433 |
| |
1418 | 1434 |
| |
1419 | 1435 |
| |
|
0 commit comments
Comments
(0)