1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-30 21:42:05 +03:00

Fix a couple of bugs in recent parallelism-related commits.

Commit 816e336f12 added the wrong error
check to async.c; sending restrictions is restricted to the leader,
not altogether unsafe.

Commit 3bd909b220 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.
This commit is contained in:
Robert Haas
2015-10-22 10:49:20 -04:00
parent 1a219fa15b
commit bde39eed0c
2 changed files with 4 additions and 6 deletions

View File

@ -804,10 +804,7 @@ ExecShutdownNode(PlanState *node)
switch (nodeTag(node))
{
case T_GatherState:
{
ExecShutdownGather((GatherState *) node);
return true;
}
ExecShutdownGather((GatherState *) node);
break;
default:
break;