pgsql: Fix slot type assumptions for nodeGather[Merge]. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Fix slot type assumptions for nodeGather[Merge].
Date
Msg-id E1gNYSo-0003vz-M9@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix slot type assumptions for nodeGather[Merge].

The assumption made in 1a0586de3657c was wrong, as evidenced by
buildfarm failure on locust, which runs with
force_parallel_mode=regress.  The tuples accessed in either nodes are
in the outer slot, and we can't trivially rely on the slot type being
known because the leader might execute the subsidiary node directly,
or via the tuple queue on a worker. In the latter case the tuple will
always be a heaptuple slot, but in the former, it'll be whatever the
subsidiary node returns.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a387a3dff9001225ad571ff2755d139f5bd193b3

Modified Files
--------------
src/backend/executor/nodeGather.c      | 22 ++++++++++++++++++----
src/backend/executor/nodeGatherMerge.c | 14 +++++++++++++-
2 files changed, 31 insertions(+), 5 deletions(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Add dummy field to currently empty struct TupleTableSlotOps.
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Redesign initialization of partition routing structures