OSDN Git Service

Reset walsender ps title in the main loop
authorMagnus Hagander <magnus@hagander.net>
Tue, 11 Jan 2011 09:04:54 +0000 (10:04 +0100)
committerMagnus Hagander <magnus@hagander.net>
Tue, 11 Jan 2011 09:04:54 +0000 (10:04 +0100)
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.

src/backend/replication/walsender.c

index bd35f31..559e734 100644 (file)
@@ -179,6 +179,8 @@ WalSndHandshake(void)
        {
                int                     firstchar;
 
+               set_ps_display("idle", false);
+
                /* Wait for a command to arrive */
                firstchar = pq_getbyte();