Add regression test for two-phase transaction in postgres_fdw
authorMichael Paquier <michael@paquier.xyz>
Wed, 13 Nov 2019 04:30:14 +0000 (13:30 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 13 Nov 2019 04:30:14 +0000 (13:30 +0900)
commit94fec48516a77f219ab94890219d724b973e4674
tree7ada3351cf9dfe61033adc3de1c4d3f58bae78ab
parent1379fd537f9fc7941c8acff8c879ce3636dbdb77
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
contrib/postgres_fdw/expected/postgres_fdw.out
contrib/postgres_fdw/sql/postgres_fdw.sql