Re: streaming replication + wal shipping - Mailing list pgsql-general

From Albe Laurenz
Subject Re: streaming replication + wal shipping
Date
Msg-id A737B7A37273E048B164557ADEF4A58B17CEFEED@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to streaming replication + wal shipping  (Anupama Ramaswamy <anumr_0123@yahoo.com>)
Responses Re: streaming replication + wal shipping  (Anupama Ramaswamy <anumr_0123@yahoo.com>)
List pgsql-general
Anupama Ramaswamy wrote:
> I would like to setup a 2 servers with streaming replication, one master and another hot standby.
> I want to use the standby for read-only queries. So I want the replication lag to be as small as
> possible.
> So I choose streaming replication over WAL shipping.
> 
> When the master fails, I want the standby to take over as master. So I would like minimal data loss,
> if there is a streaming replication delay.
> 
> Is it possible to setup such a way that under normal conditions the standby by replicating using
> streaming replication and on failover, it uses the WAL archive for syncing up with the transactions.
> Of course the WAL will be available on a shared storage volume. If this is possible, what exactly do I
> need in my configuration files - postgresql.conf, recovery.conf ?

Most of this will happen automatically - WAL archives are used if recovery
falls behind.

Where you will need additional software is automatic failover; you need some
OS cluster software that can detect failure and automatically promote the standby.

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Michael Paquier
Date:
Subject: Re: streaming replication and recovery
Next
From: Albe Laurenz
Date:
Subject: Re: CLOB & BLOB limitations in PostgreSQL