This patch enables user to configure use_xa parameter of dblink_plus as GUC parameter in postgresql.conf . If user set this parameter to "false" it disables two phase commit for all dblink_plus related sqls except user explicitly specify different value in dblink.connect() function for use_xa parameter.
Making this parameter value "false" it allows to execute dblink_plus sqls on standby servers.
How to specify GUC parameter for dblibk_plus in postgresql.conf:
1. For 9.1 and Old versions of PostgreSQL:
custom_variable_classes = 'dblink_plus'
dblink_plus.use_xa = false
dblink_plus.use_xa = true
Last edit: Sachin Kotwal 2014-06-02
Diff: