pgsql: Fix initialization of FDW batching in ExecInitModifyTable

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pgsql: Fix initialization of FDW batching in ExecInitModifyTable

Tomas Vondra-5
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(-)