Fix a couple of bugs in recent parallelism-related commits.
Robert Haas <rhaas@postgresql.org>
Fix a couple of bugs in recent parallelism-related commits. Commit 816e336f12ecabdc834d4cc31bcf966b2dd323dc added the wrong error check to async.c; sending restrictions is restricted to the leader, not altogether unsafe. Commit 3bd909b220930f21d6e15833a17947be749e7fde added ExecShutdownNode to traverse the planstate tree and call shutdown functions, but made a Gather node, the only node that actually has such a function, abort the tree traversal, which is wrong.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/async.c | modified | +3 −2 |
| src/backend/executor/execProcnode.c | modified | +1 −4 |