pgsql: Fix slot type assumptions for nodeGather[Merge].

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: Fix slot type assumptions for nodeGather[Merge].
Дата
Msg-id E1gNYSo-0003vz-M9@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: Add dummy field to currently empty struct TupleTableSlotOps.
Следующее
От: Alvaro Herrera
Дата:
Сообщение: pgsql: Redesign initialization of partition routing structures