Commit 34c6d961 authored by Robert Haas's avatar Robert Haas

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
parent a8e9b86b
...@@ -174,7 +174,7 @@ libpqrcv_identify_system(TimeLineID *primary_tli) ...@@ -174,7 +174,7 @@ libpqrcv_identify_system(TimeLineID *primary_tli)
static bool static bool
libpqrcv_startstreaming(TimeLineID tli, XLogRecPtr startpoint, char *slotname) libpqrcv_startstreaming(TimeLineID tli, XLogRecPtr startpoint, char *slotname)
{ {
char cmd[64]; char cmd[256];
PGresult *res; PGresult *res;
/* Start streaming from the point requested by startup process */ /* Start streaming from the point requested by startup process */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment