aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2011-01-11 10:04:54 +0100
committerMagnus Hagander <magnus@hagander.net>2011-01-11 10:04:54 +0100
commitb7ebda9d8c6f78b3bb31247531d0ef0e64b32a16 (patch)
treedd66c12d83be760313ab8c630e0de485d21ad2d1
parent2e36343f82377fbb50834bba6557f8f243fecb34 (diff)
downloadpostgresql-b7ebda9d8c6f78b3bb31247531d0ef0e64b32a16.tar.gz
postgresql-b7ebda9d8c6f78b3bb31247531d0ef0e64b32a16.zip
Reset walsender ps title in the main loop
When in streaming mode we can never get out, so it will never be required, but after a base backup (or other operations) we can get back to the loop, so the title needs to be cleared.
-rw-r--r--src/backend/replication/walsender.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c
index bd35f31e6fa..559e7349fc5 100644
--- a/src/backend/replication/walsender.c
+++ b/src/backend/replication/walsender.c
@@ -179,6 +179,8 @@ WalSndHandshake(void)
{
int firstchar;
+ set_ps_display("idle", false);
+
/* Wait for a command to arrive */
firstchar = pq_getbyte();