Skip to content

Commit 4807509

Browse files
committed
Set fallback_application_name in walreceiver
Makes replication slaves identify themselves in the new pg_stat_replication view.
1 parent 34ef02b commit 4807509

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/replication/libpqwalreceiver/libpqwalreceiver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ _PG_init(void)
7878
static bool
7979
libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
8080
{
81-
char conninfo_repl[MAXCONNINFO + 37];
81+
char conninfo_repl[MAXCONNINFO + 75];
8282
char *primary_sysid;
8383
char standby_sysid[32];
8484
TimeLineID primary_tli;
@@ -92,7 +92,7 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
9292
* "replication" for .pgpass lookup.
9393
*/
9494
snprintf(conninfo_repl, sizeof(conninfo_repl),
95-
"%s dbname=replication replication=true",
95+
"%s dbname=replication replication=true fallback_application_name=walreceiver",
9696
conninfo);
9797

9898
streamConn = PQconnectdb(conninfo_repl);

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