Transfer current command counter ID to parallel workers.

Robert Haas <rhaas@postgresql.org>

Commit: c451eaf8f628440ad93e933da8f08f7f4545c376
Author: Robert Haas <rhaas@postgresql.org>
Date: 2015-10-16T13:58:34Z
Releases: 9.5.0
Transfer current command counter ID to parallel workers.

Commit 924bcf4f16d54c55310b28f77686608684734f42 correctly forbade
parallel workers to modify the command counter while in parallel mode,
but it inexplicably neglected to actually transfer the current command
counter from leader to workers.  This can result in the workers seeing
a different set of tuples from the leader, which is bad.  Repair.

Files

PathChange+/−
src/backend/access/transam/xact.c modified +25 −21