diff options
author | Robert Haas <rhaas@postgresql.org> | 2014-03-03 07:24:52 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2014-03-03 07:24:52 -0500 |
commit | 34c6d9611d23178539ed09b8f2ce40c5788a21cb (patch) | |
tree | 5e076fe5952688668033eb0905dbd5d2e451988c /src | |
parent | a8e9b86b5e027a78ffeb738e207158424427e674 (diff) | |
download | postgresql-34c6d9611d23178539ed09b8f2ce40c5788a21cb.tar.gz postgresql-34c6d9611d23178539ed09b8f2ce40c5788a21cb.zip |
Use a longer buffer in libpqrcv_startstreaming.
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
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/replication/libpqwalreceiver/libpqwalreceiver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c b/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c index ecec8b34563..c10374cdbca 100644 --- 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 */ |