Re: hot standby PSQL 9.1 Windows 2008 Servers - Mailing list pgsql-hackers

From Robert Haas
Subject Re: hot standby PSQL 9.1 Windows 2008 Servers
Date
Msg-id CA+TgmoanA_uMn3UaN-9kdW8vrPs2UGkhaLdidpc=aTyeF1H6UQ@mail.gmail.com
Whole thread Raw
In response to hot standby PSQL 9.1 Windows 2008 Servers  (chinnaobi <chinnaobi@gmail.com>)
Responses Re: hot standby PSQL 9.1 Windows 2008 Servers
List pgsql-hackers
On Mon, May 14, 2012 at 8:18 AM, chinnaobi <chinnaobi@gmail.com> wrote:
> I do base backup only first time on standby when it is going to be
> replicated. when ever primary goes down,  standby becomes primary and
> primary becomes standby when primary comes up. When primary becomes standby
> I am restoring data from WAL archive and start postgres service streaming
> replication to connect to primary.
>
> This setup is working.

I don't think this is safe.  The primary might have WAL that never
made it to the standby, in which case the two machines will be out of
sync with each other and all sorts of bad stuff could happen.

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


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Changing the concept of a DATABASE
Next
From: Robert Haas
Date:
Subject: Re: ERROR: catalog is missing 2 attribute(s) for relid 16584