pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Scott Ribe <scott_ribe@elevated-dev.com>
Cc: Imre Oolberg <imre@auul.pri.ee>
Cc: pgsql-admin@postgresql.org
Subject: Re: Re: pg v. 8.4.5 misses objects and data after restoring from backup using wal
Date: Mon, 03 Jan 2011 13:56:48 -0500
Message-ID: <22730.1294081008@sss.pgh.pa.us> (raw)
In-Reply-To: <E486B5B1-EC5F-4615-8633-D89CF6665663@elevated-dev.com>
References: <AANLkTikY_XJ0Ok7bLGVxXXfGgenfnzJ4RnSiM_H40FCM@mail.gmail.com>
	<4D2213EB.7090700@auul.pri.ee>
	<42066935-6D27-46E3-8094-836D204816B7@elevated-dev.com>
	<22500.1294080152@sss.pgh.pa.us>
	<E486B5B1-EC5F-4615-8633-D89CF6665663@elevated-dev.com>

Scott Ribe <scott_ribe@elevated-dev.com> writes:
> Unless I misread his earlier post, he is starting the backup, copying files, stopping the backup, and expecting those transactions (between start & stop) to be applied, even though files changed during that time (including WAL files) have not all been copied. Again, unless I misread his earlier post, he is *not* copying WAL that was generated between start & stop.

If that's the case, it just plain won't work.  You can either shut down
the postmaster and copy a static set of files, or you can apply WAL to a
base backup that was taken from a live database.  There is no way to get
consistent results from a backup of a live database without applying all
the WAL that was generated while the backup was being taken.

			regards, tom lane



view thread (16+ messages)  latest in thread

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

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, scott_ribe@elevated-dev.com, imre@auul.pri.ee
  Subject: Re: Re: pg v. 8.4.5 misses objects and data after restoring from backup using wal
  In-Reply-To: <22730.1294081008@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