pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Frost <jeff@frostconsultingllc.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: restoring wal archive and pg_xlog dir
Date: Thu, 23 Jun 2005 14:24:42 -0400
Message-ID: <7197.1119551082@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.63.0506231054250.21285@discord.dyndns.org>
References: <Pine.LNX.4.63.0506231054250.21285@discord.dyndns.org>

Jeff Frost <jeff@frostconsultingllc.com> writes:
> If the system will use the files in the archive in preference to the ones in 
> pg_xlog, how can this actually happen if it will not overwrite the contents of 
> pg_xlog?

Segment files pulled from the archive are saved using temporary file
names (and then deleted after being replayed).  For obvious safety
reasons, we try never to overwrite any xlog file in either the archive
or local storage.

> I also noticed that if there is not at least one wal archive available in
> the archive or the pg_xlog dir, the restore errors out and exits.  So the
> base backup is really not complete without at least one wal archive
> following it.  Is this by design?

Certainly.  If you don't have wal data spanning the entire time that the
base backup is being taken, the backup is useless because there's no way
to make it consistent.

			regards, tom lane



view thread (11+ messages)  latest in thread

Message-ID: <7197.1119551082@sss.pgh.pa.us>
Permalink:  ../7197.1119551082@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7197.1119551082@sss.pgh.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: tgl@sss.pgh.pa.us, jeff@frostconsultingllc.com
  Subject: Re: restoring wal archive and pg_xlog dir
  In-Reply-To: <7197.1119551082@sss.pgh.pa.us>
  References: <Pine.LNX.4.63.0506231054250.21285@discord.dyndns.org> <7197.1119551082@sss.pgh.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