pgsql: Transfer current command counter ID to parallel workers.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Transfer current command counter ID to parallel workers.
Date: 2015-10-16 13:58:56
Message-ID: E1Zn5X6-0008Jd-Hn@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/423ec0877ff29bc78e48e50362dbcde351a1f025

Modified Files
--------------
src/backend/access/transam/xact.c | 46 ++++++++++++++++++++-----------------
1 file changed, 25 insertions(+), 21 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2015-10-16 14:22:00 pgsql: Tighten up application of parallel mode checks.
Previous Message Robert Haas 2015-10-16 13:52:42 Re: pgsql: Don't send protocol messages to a shm_mq that no longer exists.