Re: WAL Replication + PITR - Mailing list pgsql-general

From Albe Laurenz
Subject Re: WAL Replication + PITR
Date
Msg-id A737B7A37273E048B164557ADEF4A58B17CF4B78@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to WAL Replication + PITR  (basti <mailinglist@unix-solution.de>)
List 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

pgsql-general by date:

Previous
From: David Noel
Date:
Subject: Re: SQL query runs fine on one platform (FreeBSD), but hangs on another (Windows)
Next
From: David Noel
Date:
Subject: Re: SQL query runs fine on one platform (FreeBSD), but hangs on another (Windows)