Re: Streaming Replication and CopyOutResponse message - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Streaming Replication and CopyOutResponse message
Date
Msg-id 4BACA754.2070106@enterprisedb.com
Whole thread Raw
In response to Streaming Replication and CopyOutResponse message  (Fujii Masao <masao.fujii@gmail.com>)
List pgsql-hackers
Fujii Masao wrote:
> At the end of the handshake for replication, a CopyOutResponse
> message might not arrive at the standby for a while if there is
> no WAL record to send. Also walreceiver would get stuck until
> that message has arrived. This is not a big problem, but should
> be fixed.
> 
> The cause is that walsender hasn't called pq_flush() there.
> The attached patch changes walsender so as to call pg_flush()
> immediately when sending that message. Is it worth applying
> the patch?

Yeah, applied.

--  Heikki Linnakangas EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Dimitri Fontaine
Date:
Subject: Re: Proposal: access control jails (and introduction as aspiring GSoC student)
Next
From: Fujii Masao
Date:
Subject: Re: Incrementally Updated Backups and restartpoints