Re: How to avoid base backup in automated failover - Mailing list pgsql-hackers

From Robert Haas
Subject Re: How to avoid base backup in automated failover
Date
Msg-id CA+TgmoZmsr_14PzjG-2aHL1h=00tZ5sB4xFW6jvRnFyjZ0W04Q@mail.gmail.com
Whole thread Raw
In response to How to avoid base backup in automated failover  (chinnaobi <chinnaobi@gmail.com>)
Responses Re: How to avoid base backup in automated failover
Re: How to avoid base backup in automated failover
List pgsql-hackers
On Mon, Jun 4, 2012 at 9:14 AM, chinnaobi <chinnaobi@gmail.com> wrote:
> Recently I was writing an application to implement automated failover with
> env: Two 2008 R2 servers, Network area storage, asynchronous replication,
> WAL archive on primary enabled.
>
> Is there any way to avoid starting standby server always from base backup in
> automated failover. I see the database is growing huge. I can't keep doing
> base backup every day.
>
> Please suggest solution

The usual solution is to configure the standby as a warm or hot
standby, so that logs are continuously replayed there.  Then if the
master dies, you only have to wait for replication to catch up before
promoting.

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


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: GiST subsplit question
Next
From: Euler Taveira
Date:
Subject: Re: libpq compression