pgsql: postgres_fdw: Disable batch insert when BEFORE ROW INSERT trigge - Mailing list pgsql-committers

From Etsuro Fujita
Subject pgsql: postgres_fdw: Disable batch insert when BEFORE ROW INSERT trigge
Date
Msg-id E1nhQTn-000O7s-1q@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
postgres_fdw: Disable batch insert when BEFORE ROW INSERT triggers exist.

Previously, we allowed this, but such triggers might query the table to
insert into and act differently if the tuples that have already been
processed and prepared for insertion are not there, so disable it in
such cases.

Back-patch to v14 where batch insert was added.

Discussion: https://postgr.es/m/CAPmGK16_uPqsmgK0-LpLSUk54_BoK13bPrhxhfjSoSTVz414hA%40mail.gmail.com

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/89d349b0a0239504325e5f63755f3bc1e1742478

Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out | 28 ++++++++++++++++++++++++++
contrib/postgres_fdw/postgres_fdw.c            | 17 ++++++++++++----
contrib/postgres_fdw/sql/postgres_fdw.sql      | 12 +++++++++++
3 files changed, 53 insertions(+), 4 deletions(-)


pgsql-committers by date:

Previous
From: Peter Geoghegan
Date:
Subject: pgsql: vacuumlazy.c: MultiXactIds are MXIDs, not XMIDs.
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Support new perl module namespace in stable branches