pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndQuadrant.com>
To: Ray Stell <stellr@cns.vt.edu>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: streaming AND file-based log-shipping?
Date: Fri, 15 Apr 2011 08:52:24 +0100
Message-ID: <BANLkTinHaqArn-xdR8ZTB2m0HFXvKG+sJg@mail.gmail.com> (raw)
In-Reply-To: <20110415012500.GA9121@cns.vt.edu>
References: <20110415012500.GA9121@cns.vt.edu>

On Fri, Apr 15, 2011 at 2:25 AM, Ray Stell <stellr@cns.vt.edu> wrote:

> The cookbook text says, log shipping "is mostly superseded by streaming
> replication in 9.0, though is still useful as part of a comprehensive
> backup strategy."  The implication is that the WAL archive might be
> needed for recovery in some cases:

Useful, not needed.

> 1. Under what circumstances might the WAL archive come into play in recovery?

If a WAL file is damaged, or if you wish to keep archived files for
longer than they are strictly required to make replication work.

> 2. If the streaming rep fails for some reason will the standby begin
>   recovery from the WAL archive, assuming the WAL can still be shipped?

Yes

> 3. What query or command set can be used to tell if file-based recovery is
>   configured correctly if streaming replication is active?
>
> I've configured both (I think), but it isn't clear to me whether
> the file-based part will function.  I guess I could bust the stream somehow
> and see what happens, but I can't find this idea documented.

Agreed, its slightly harder to test that its all working. But any
action you take that only works if something broke, can only really be
tested by deliberately breaking something. Break it, but on a test
system.

-- 
 Simon Riggs                   http://www.2ndQuadrant.com/books/
 PostgreSQL Development, 24x7 Support, Training & Services



view thread (4+ messages)  latest in thread

Message-ID: <BANLkTinHaqArn-xdR8ZTB2m0HFXvKG+sJg@mail.gmail.com>
Permalink:  ../BANLkTinHaqArn-xdR8ZTB2m0HFXvKG+sJg@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTinHaqArn-xdR8ZTB2m0HFXvKG+sJg@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: simon@2ndQuadrant.com, stellr@cns.vt.edu
  Subject: Re: streaming AND file-based log-shipping?
  In-Reply-To: <BANLkTinHaqArn-xdR8ZTB2m0HFXvKG+sJg@mail.gmail.com>
  References: <20110415012500.GA9121@cns.vt.edu> <BANLkTinHaqArn-xdR8ZTB2m0HFXvKG+sJg@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox