]> git.ipfire.org Git - thirdparty/postgresql.git/commit
postgres_fdw: Fix error message for PREPARE TRANSACTION.
authorEtsuro Fujita <efujita@postgresql.org>
Fri, 8 Nov 2019 08:00:34 +0000 (17:00 +0900)
committerEtsuro Fujita <efujita@postgresql.org>
Fri, 8 Nov 2019 08:00:34 +0000 (17:00 +0900)
commit0c7a28a5eabd9869a3af9ca3c0360a043438f865
treee2059d94c2f3beff8c8a0bb7cf3c7167d839cc6c
parent5292570ba19ec3f8281ef0e4233cb5cad3d30a47
postgres_fdw: Fix error message for PREPARE TRANSACTION.

Currently, postgres_fdw does not support preparing a remote transaction
for two-phase commit even in the case where the remote transaction is
read-only, but the old error message appeared to imply that that was not
supported only if the remote transaction modified remote tables.  Change
the message so as to include the case where the remote transaction is
read-only.

Also fix a comment above the message.

Also add a note about the lack of supporting PREPARE TRANSACTION to the
postgres_fdw documentation.

Reported-by: Gilles Darold
Author: Gilles Darold and Etsuro Fujita
Reviewed-by: Michael Paquier and Kyotaro Horiguchi
Backpatch-through: 9.4
Discussion: https://postgr.es/m/08600ed3-3084-be70-65ba-279ab19618a5%40darold.net
contrib/postgres_fdw/connection.c
doc/src/sgml/postgres-fdw.sgml