Do not add a newline ('\n') between rows while running a BINARY COPY protocol.
authorPavan Deolasee <pavan.deolasee@gmail.com>
Fri, 10 Mar 2017 09:07:20 +0000 (14:37 +0530)
committerPavan Deolasee <pavan.deolasee@gmail.com>
Fri, 10 Mar 2017 09:07:20 +0000 (14:37 +0530)
commit58301d2f658342d64cacb6744b9318806704ec3b
tree4437ae0cfd22c52edb6a5c081af0c0505cac708c
parente0dafce20fc8ef4bc06608d498d618b890bde8ae
Do not add a newline ('\n') between rows while running a BINARY COPY protocol.

PostgreSQL's BINARY COPY protocol does not expect a newline character between
rows. But coordinator was adding this while running the protocol between
coordinator and the datanodes. While Postgres-XL had some provision to deal
with this on the datanode side, it seemed either insufficient or buggy as
evident during tests with pglogical. So get rid of that and make the protocol
same as vanilla PG.
src/backend/commands/copy.c
src/backend/pgxc/locator/redistrib.c
src/backend/pgxc/pool/execRemote.c
src/include/pgxc/execRemote.h