Fix bugs around handling of params passed to the datanodes.
authorPavan Deolasee <[email protected]>
Tue, 1 Mar 2016 05:57:20 +0000 (11:27 +0530)
committerPavan Deolasee <[email protected]>
Tue, 18 Oct 2016 10:00:18 +0000 (15:30 +0530)
commit53db4e0dd31d89fc8bce1e4bab2512e4360b8119
treee62cd591023aca045cd54f939056bb3f501322cb
parentfc1de4ee558a3dcaad58b8643603dc75c2a2ee7b
Fix bugs around handling of params passed to the datanodes.

This fixes problems reported in plpgsql function calls since
fast-query-shipping was added. But fixing the problem also highlighted other
bugs in the protocol handling. For example, we would set a datanode connection
state to be IDLE upon receiving a CommandComplete. But for simple query
protocol, we should really be waiting for ReadyForQuery before changing the
state. This patch has related fixes.

plpgsql test case's expected output is also fixed now that the underlying bug
has been take care of
src/backend/commands/prepare.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/outfuncs.c
src/backend/pgxc/barrier/barrier.c
src/backend/pgxc/pool/execRemote.c
src/backend/pgxc/pool/pgxcnode.c
src/include/pgxc/execRemote.h
src/include/pgxc/pgxcnode.h
src/include/pgxc/planner.h
src/test/regress/expected/plpgsql_1.out