On Fri, May 27, 2011 at 6:19 AM, Noah Misch <n...@leadboat.com> wrote:
>> So, it's ok to have a log item that is replayed only if
>> WalRcvInProgress()
>> is true?
> No, that checks for WAL streaming in particular.  A log-shipping standby needs
> the same treatment.
>> Is it a correct approach? I couldn't find any other way to
>> find out if we are in a standby or a master...
> InArchiveRecovery looks like the right thing, but it's currently static to
> xlog.c.  Perhaps exporting that is the way to go.

Why is it necessary to replay the operation only on the slave?  Can we

Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:

Reply via email to