Use a longer buffer in libpqrcv_startstreaming.
authorRobert Haas <rhaas@postgresql.org>
Mon, 3 Mar 2014 12:24:52 +0000 (07:24 -0500)
committerRobert Haas <rhaas@postgresql.org>
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

index ecec8b345634960d591289ba90b220aad0f5e5da..c10374cdbca5f6b9db6589f5e55e556f68ac0d74 100644 (file)
@@ -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 */