pgsql: Fix initialization of FDW batching in ExecInitModifyTable

From: Tomas Vondra <tomas(dot)vondra(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix initialization of FDW batching in ExecInitModifyTable
Date: 2021-01-21 02:35:12
Message-ID: E1l2PoW-00071q-IN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix initialization of FDW batching in ExecInitModifyTable

ExecInitModifyTable has to initialize batching for all result relations,
not just the first one. Furthermore, when junk filters were necessary,
the pointer pointed past the mtstate->resultRelInfo array.

Per reports from multiple non-x86 animals (florican, locust, ...).

Discussion: https://postgr.es/m/20200628151002.7x5laxwpgvkyiu3q@development

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/920f853dc948b98a5dc96580c4ee011a302e33e4

Modified Files
--------------
src/backend/executor/nodeModifyTable.c | 31 +++++++++++++++++++++----------
1 file changed, 21 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2021-01-21 20:37:43 pgsql: Fix pull_varnos' miscomputation of relids set for a PlaceHolderV
Previous Message Michael Paquier 2021-01-21 02:08:27 pgsql: Switch "cl /?" to "cl /help" in MSVC scripts for platform detect