Streaming Replication and CopyOutResponse message - Mailing list pgsql-hackers

From Fujii Masao
Subject Streaming Replication and CopyOutResponse message
Date
Msg-id 3f0b79eb1003260230q38be9b84m17aa79729942296b@mail.gmail.com
Whole thread Raw
Responses Re: Streaming Replication and CopyOutResponse message
List pgsql-hackers
Hi,

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?

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

Attachment

pgsql-hackers by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: Ask help for putting SP-Gist into postgresql
Next
From: Dimitri Fontaine
Date:
Subject: Re: Proposal: access control jails (and introduction as aspiring GSoC student)