Re: Refactoring standby mode logic

Dimitri Fontaine <dimitri@2ndquadrant.fr>

From: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
To: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: PostgreSQL-development <pgsql-hackers@postgreSQL.org>
Date: 2012-12-03T13:53:50Z
Lists: pgsql-hackers
Heikki Linnakangas <hlinnakangas@vmware.com> writes:
>> I'm not understanding the sequence difference well enough to comment
>> here, but I think some people are currently playing tricks in their
>> failover scripts with moving files directly to the pg_xlog of the server
>> to be promoted.
>
> That's still perfectly ok. It's only if you have a diverged timeline
> history, and you have files from one timeline in the archive and files from
> another in pg_xlog that you'll see a difference. But in such a split
> situation, it's quite arbitrary which timeline recovery will follow anyway,
> I don't think anyone can sanely rely on either behavior.

Fair enough.

Regards,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support