summaryrefslogtreecommitdiff
path: root/src/include/postgres.h
diff options
context:
space:
mode:
authorAbbas2012-05-20 03:42:48 +0000
committerAbbas2012-05-20 03:47:27 +0000
commite13fdd2b362c764713a765e447d15bcc7b0d8dbe (patch)
treecdeb0896d0af5f64582e59e54da293fe497afec6 /src/include/postgres.h
parente8461c7373f1631a3549a78dfb50b181fca92aeb (diff)
Fix a problem in explicitly PREPARED TRANSACTIONS.
Problem: If a transaction contains read only statements, it gets started on data nodes but is never ended in case of a PREPARE TRANSACTION 'my_gxid'. Even if we do not need to prepare it on the data nodes we still need to end it. Solution: The function pgxc_node_remote_prepare() has been modified to send PREPARE TRANSACTION on nodes where this transaction is doing some write, and COMMIT TRANSACTION to nodes where it did some read only activity. Test cases are added to make sure the prepared transactions are working as expected.
Diffstat (limited to 'src/include/postgres.h')
0 files changed, 0 insertions, 0 deletions