Fix initialization of FDW batching in ExecInitModifyTable
authorTomas Vondra <[email protected]>
Thu, 21 Jan 2021 02:23:24 +0000 (03:23 +0100)
committerTomas Vondra <[email protected]>
Thu, 21 Jan 2021 02:34:32 +0000 (03:34 +0100)
commit920f853dc948b98a5dc96580c4ee011a302e33e4
tree53513146154c1778f6a845ce6aec8c351e1626ee
parent733d670073efd2c3a9df07c225006668009ab793
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
src/backend/executor/nodeModifyTable.c