pgsql: Add regression test for two-phase transaction in postgres_fdw

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add regression test for two-phase transaction in postgres_fdw
Date: 2019-11-13 04:44:06
Message-ID: E1iUkVi-0007uQ-Vz@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add regression test for two-phase transaction in postgres_fdw

postgres_fdw does not support two-phase transactions, so let's add a
small negative test case to check after it. Note that this is checked
using an end-of-xact callback to ensure a proper connection cleanup with
the foreign server, which is called before checking if a server is able
to handle 2PC with max_prepared_xacts, so this test does not need an
alternate output file.

Author: Gilles Darold
Discussion: https://postgr.es/m/20191108090507.GC1768@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/94fec48516a77f219ab94890219d724b973e4674

Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out | 13 +++++++++++++
contrib/postgres_fdw/sql/postgres_fdw.sql | 7 +++++++
2 files changed, 20 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2019-11-13 08:33:10 Re: pgsql: Make the order of the header file includes consistent in backend
Previous Message Bruce Momjian 2019-11-13 03:04:35 pgsql: docs: clarify that only INSERT and UPDATE triggers can mod. NEW