Skip to content

Commit 34c6d96

Browse files
committed
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
1 parent a8e9b86 commit 34c6d96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/replication/libpqwalreceiver/libpqwalreceiver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ libpqrcv_identify_system(TimeLineID *primary_tli)
174174
static bool
175175
libpqrcv_startstreaming(TimeLineID tli, XLogRecPtr startpoint, char *slotname)
176176
{
177-
char cmd[64];
177+
char cmd[256];
178178
PGresult *res;
179179

180180
/* Start streaming from the point requested by startup process */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy