pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Mark Kirkwood <markir@coretech.co.nz>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: [HACKERS] Point in Time Recovery
Date: Wed, 21 Jul 2004 23:54:48 -0400 (EDT)
Message-ID: <200407220354.i6M3smv21365@candle.pha.pa.us> (raw)
In-Reply-To: <2654.1090467742@sss.pgh.pa.us>

Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Agreed, it might not be possible, but your report does point out a
> > limitation in our implementation --- that a shutdown database contains
> > more information than a backup and the archive logs.  That is not
> > intuitive.
> 
> That's only because you are clinging to the broken assumption that
> pg_xlog/ is part of the database, rather than part of the logs.
> Separate that out as a distinct entity, and all gets better.

Imagine this.   I stop the server.  I have a tar backup and a copy of
the archive.  I should be able to take them to another machine and
recover the system to the point I stopped.

You are saying I need a copy of pg_xlog directory too, and I need to
remove pg_xlog after I untar the data directory and put the saved
pg_xlog into there before I recover.

Should we create a server-side function that forces all WAL files to the
archive, including partially written ones.  Maybe that fixes the problem
with people deleting pg_xlog before they untar.  You tell them to run
the function before recovery.  If the system can't be started, the it is
possible the WAL files are no good too, not sure.

-- 
  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 (111+ messages)  latest in thread

Message-ID: <200407220354.i6M3smv21365@candle.pha.pa.us>
Permalink:  ../200407220354.i6M3smv21365@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200407220354.i6M3smv21365@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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us, markir@coretech.co.nz, simon@2ndquadrant.com
  Subject: Re: [HACKERS] Point in Time Recovery
  In-Reply-To: <200407220354.i6M3smv21365@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