From: Magnus Hagander Date: Tue, 11 Jan 2011 09:04:54 +0000 (+0100) Subject: Reset walsender ps title in the main loop X-Git-Tag: REL9_1_ALPHA4~472 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7ebda9d8c6f78b3bb31247531d0ef0e64b32a16;p=postgresql 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. --- diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c index bd35f31e6f..559e7349fc 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();