Send down SYNC message to a failed remote session that was running extended
authorPavan Deolasee <[email protected]>
Wed, 9 Mar 2016 12:18:23 +0000 (17:48 +0530)
committerPavan Deolasee <[email protected]>
Wed, 9 Mar 2016 12:18:23 +0000 (17:48 +0530)
commite1d06bdacf69954f1b81eeb84a42fe13b51fe44c
tree02155659ef22e23d123ac0ab39dd026eb83e31af
parent0510b8d083cd9233f74feed0241e42540e50f7cc
Send down SYNC message to a failed remote session that was running extended
query protocol.

While running extended query protocol, a backend that has thrown an error will
keep ignoring all messages until it sees a SYNC message. We now carefully track
the messages that we are sending to the remote node and remember if we must
send a SYNC message even before sending a ROLLBACK command.

While the regression was running fine even without this patch, this issue was
noticed as part of some other work and hence fixed
src/backend/pgxc/pool/execRemote.c
src/backend/pgxc/pool/pgxcnode.c
src/include/pgxc/pgxcnode.h