Fix a couple of bugs in recent parallelism-related commits.
authorRobert Haas <rhaas@postgresql.org>
Thu, 22 Oct 2015 14:49:20 +0000 (10:49 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 22 Oct 2015 14:49:20 +0000 (10:49 -0400)
commitbde39eed0cafb82bc94c40e95d96b5cf47b6f719
treef7953cad3331f41078886d4811b2efec02a4d0d8
parent1a219fa15bf802d69621e71c43d1a09515bcdc50
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.
src/backend/commands/async.c
src/backend/executor/execProcnode.c