diff options
| author | Pavan Deolasee | 2017-03-10 09:07:20 +0000 |
|---|---|---|
| committer | Pavan Deolasee | 2017-05-05 04:59:34 +0000 |
| commit | 1ae850a4651ed10ea6a24d0f2f43f4c760dba78d (patch) | |
| tree | 45efa8f568f60f6dc9fc1d6c8ca90afe831d9be7 /src/include/pgxc | |
| parent | d0b6ee233d9b62f564b7051a4a7f4f61e960fc6f (diff) | |
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.
Diffstat (limited to 'src/include/pgxc')
| -rw-r--r-- | src/include/pgxc/execRemote.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/pgxc/execRemote.h b/src/include/pgxc/execRemote.h index eda1ac4e99..45ad90738d 100644 --- a/src/include/pgxc/execRemote.h +++ b/src/include/pgxc/execRemote.h @@ -228,7 +228,8 @@ typedef void (*xact_callback) (bool isCommit, void *args); /* Copy command just involves Datanodes */ extern void DataNodeCopyBegin(RemoteCopyData *rcstate); extern int DataNodeCopyIn(char *data_row, int len, int conn_count, - PGXCNodeHandle** copy_connections); + PGXCNodeHandle** copy_connections, + bool binary); extern uint64 DataNodeCopyOut(PGXCNodeHandle** copy_connections, int conn_count, FILE* copy_file); extern uint64 DataNodeCopyStore(PGXCNodeHandle** copy_connections, |
