pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Enzo D'addario <enzo@pienetworks.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: On-line backup and point-in-time recovery (PITR)
Date: Thu, 18 Aug 2005 23:01:27 -0400 (EDT)
Message-ID: <200508190301.j7J31Ru16769@candle.pha.pa.us> (raw)
In-Reply-To: <1124418842.3492.34.camel@tuppy.pienetworks.com>

Enzo D'addario wrote:
> Hi All,
> 
> I have a couple of questions regarding On-line backup and point-in-time
> recovery (PITR) in the postgres documentation:
> 
> 1.How is it that we can create a tar file of the PG Data directory
> whilst postgres is running?

Whe pg_xlog archived files contain information to recover any
inconsistency in the backup tar file.

> 2.What happens with any DB inserts, updates, deletes etc that occur
> between the SELECT pg_start_backup() and the end of the tar?
> They would be already logged in the WAL files and already applied in the
> tarball, do they then get duplicated during log replay in the recover
> process? 

No, the recovery is just like crash recovery and everything comes back
clean, but you do have to recover to a time _after_ the end of the
backup.  If you want to recover to a time during the backup you have to
use the previous backup and xlog files.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (3+ messages)  latest in thread

Message-ID: <200508190301.j7J31Ru16769@candle.pha.pa.us>
Permalink:  ../200508190301.j7J31Ru16769@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200508190301.j7J31Ru16769@candle.pha.pa.us

 · 

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: pgman@candle.pha.pa.us, enzo@pienetworks.com
  Subject: Re: On-line backup and point-in-time recovery (PITR)
  In-Reply-To: <200508190301.j7J31Ru16769@candle.pha.pa.us>
  References: <1124418842.3492.34.camel@tuppy.pienetworks.com> <200508190301.j7J31Ru16769@candle.pha.pa.us>

* 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