forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf8807e7
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 parent35893cc commitf8807e7
1 file changed
+20
-4
lines changedLines changed: 20 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1359 | 1359 |
| |
1360 | 1360 |
| |
1361 | 1361 |
| |
1362 |
| - | |
1363 |
| - | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
1364 | 1372 |
| |
1365 | 1373 |
| |
1366 | 1374 |
| |
| |||
1423 | 1431 |
| |
1424 | 1432 |
| |
1425 | 1433 |
| |
1426 |
| - | |
1427 |
| - | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
1428 | 1444 |
| |
1429 | 1445 |
| |
1430 | 1446 |
| |
|
0 commit comments
Comments
(0)