]> granicus.if.org Git - postgresql/commitdiff
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 bd35f31e6fa1f05a8a15200d0e1f2e5f1bf14cb6..559e7349fc59c60de457b69124c57e22d1cd2364 100644 (file)
@@ -179,6 +179,8 @@ WalSndHandshake(void)
        {
                int                     firstchar;
 
+               set_ps_display("idle", false);
+
                /* Wait for a command to arrive */
                firstchar = pq_getbyte();