projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8e9b86
)
Use a longer buffer in libpqrcv_startstreaming.
author
Robert Haas
Mon, 3 Mar 2014 12:24:52 +0000
(07:24 -0500)
committer
Robert Haas
Mon, 3 Mar 2014 12:24:52 +0000
(07:24 -0500)
Because of the new SLOT clause in the START_REPLICATION command, it's
possible for the command to end up too long for the old maximum buffer
length.
Andres Freund
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
b/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
index ecec8b345634960d591289ba90b220aad0f5e5da..c10374cdbca5f6b9db6589f5e55e556f68ac0d74 100644
(file)
--- a/
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
+++ b/
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
@@
-174,7
+174,7
@@
libpqrcv_identify_system(TimeLineID *primary_tli)
static bool
libpqrcv_startstreaming(TimeLineID tli, XLogRecPtr startpoint, char *slotname)
{
- char cmd[
64
];
+ char cmd[
256
];
PGresult *res;
/* Start streaming from the point requested by startup process */