Re: making write location work (was: Efficient transaction-controlled synchronous replication)

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Simon Riggs <simon@2ndquadrant.com>, Fujii Masao <masao.fujii@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2011-03-23T16:44:41Z
Lists: pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> Specifically, if we're not going to remove write location, then I
> think we need to apply something like the attached.

>  			while (walrcv_receive(0, &type, &buf, &len))
>  				XLogWalRcvProcessMsg(type, buf, len);
 
> +			/* Let the master know that we received some data. */
> +			XLogWalRcvSendReply();

What if we didn't actually receive any new data?

			regards, tom lane