aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2011-01-17 11:42:12 +0100
committerMagnus Hagander <magnus@hagander.net>2011-01-17 11:42:53 +0100
commit48075095ac3ce1aaa63624ea0148dbe5bcba3b09 (patch)
tree930b4458725066ee8264e1a5d8e53df0e9489f4c /src
parent34ef02b4d4c06e2bae6ad09cfd6d9c097eb73743 (diff)
downloadpostgresql-48075095ac3ce1aaa63624ea0148dbe5bcba3b09.tar.gz
postgresql-48075095ac3ce1aaa63624ea0148dbe5bcba3b09.zip
Set fallback_application_name in walreceiver
Makes replication slaves identify themselves in the new pg_stat_replication view.
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/libpqwalreceiver/libpqwalreceiver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c b/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
index c052df242f2..c6e034d66f0 100644
--- a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
+++ b/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
@@ -78,7 +78,7 @@ _PG_init(void)
static bool
libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
{
- char conninfo_repl[MAXCONNINFO + 37];
+ char conninfo_repl[MAXCONNINFO + 75];
char *primary_sysid;
char standby_sysid[32];
TimeLineID primary_tli;
@@ -92,7 +92,7 @@ libpqrcv_connect(char *conninfo, XLogRecPtr startpoint)
* "replication" for .pgpass lookup.
*/
snprintf(conninfo_repl, sizeof(conninfo_repl),
- "%s dbname=replication replication=true",
+ "%s dbname=replication replication=true fallback_application_name=walreceiver",
conninfo);
streamConn = PQconnectdb(conninfo_repl);