Re: walsender waiting_for_ping spuriously set

2020-08-10 Thread Andres Freund
On 2020-08-06 18:55:58 -0400, Alvaro Herrera wrote: > Ashutosh Bapat noticed that WalSndWaitForWal() is setting > waiting_for_ping_response after sending a keepalive that does *not* > request a reply. The bad consequence is that other callers that do > require a reply end up in not sending a keepa

Re: walsender waiting_for_ping spuriously set

2020-08-08 Thread Alvaro Herrera
Pushed. -- Álvaro Herrerahttps://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Re: walsender waiting_for_ping spuriously set

2020-08-07 Thread Alvaro Herrera
On 2020-Aug-07, Alvaro Herrera wrote: > I'm thinking in keeping the sentences that were added in that commit, > maybe like so: > > > * We only send regular messages to the client for full decoded > > * transactions, but a synchronous replication and walsender > > shutdo

Re: walsender waiting_for_ping spuriously set

2020-08-07 Thread Alvaro Herrera
I just noticed that part of this comment I'm modifying: > @@ -1444,17 +1444,13 @@ WalSndWaitForWal(XLogRecPtr loc) >* We only send regular messages to the client for full decoded >* transactions, but a synchronous replication and walsender > shutdown >

Re: walsender waiting_for_ping spuriously set

2020-08-07 Thread Ashutosh Bapat
The patch looks good to me. Thanks for improving comments around that code. I like the change to set waiting_for_ping_response in WalSndKeepalive. Thanks. On Fri, 7 Aug 2020 at 04:26, Alvaro Herrera wrote: > Ashutosh Bapat noticed that WalSndWaitForWal() is setting > waiting_for_ping_response af