Re: WAL Replication + PITR

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "basti *EXTERN*" <mailinglist(at)unix-solution(dot)de>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: WAL Replication + PITR
Date: 2014-04-29 09:30:38
Message-ID: A737B7A37273E048B164557ADEF4A58B17CF4B78@ntex2010i.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

basti wrote:
> is it possible to have WAL Replication and Point-in-Time Recovery like
> follows:
>
> DB-Master -- (WAL to Slave) --> DB-Slave
> |
> |-------> (PITR to an other Server)
>
> Thanks for any help!

Sure. You can use something like the UNIX command "tee" in "archive_command"
to create a second copy of the WAL archive.

You could also use the same archived WALs for both purposes and
from several machines by putting them on a network file system.

> p.s. is there a tutorial somewhere how describe the steps todo when the
> master is crashed?

You will have to promote the standby, make sure future client
requests will go there (a connection pooler or a virtual IP address
can help here) and build a new standby.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Noel 2014-04-29 09:39:04 Re: SQL query runs fine on one platform (FreeBSD), but hangs on another (Windows)
Previous Message David Noel 2014-04-29 09:12:13 Re: SQL query runs fine on one platform (FreeBSD), but hangs on another (Windows)