From: Guillaume Lelarge <guillaume@lelarge.info>
To: Brad Littlejohn <blittlejohn@posportal.com>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: Apply WAL logs after database restore
Date: Thu, 18 Feb 2010 23:19:18 +0100
Message-ID: <4B7DBCE6.3060007@lelarge.info> (raw)
In-Reply-To: <FC2125863502344C9B615565CF826F7CD9B323A2@posexch1.posportal.com>
References: <FC2125863502344C9B615565CF826F7CD9B323A2@posexch1.posportal.com>
Le 18/02/2010 22:56, Brad Littlejohn a écrit :
> [...]
> I'm pretty sure that this is a FAQ here, but I'll ask it, just to get confirmation on what I need to do.
>
> I have a database sitting on a box running PostgreSQL 8.4, checking in at 190GB. I performed a backup of the database, using pg_dump to get the data out of the database. This is a full level 0 backup of the database. I have WAL-based log shipping enabled on that server.
>
> I just created a second database server that will be a recovery server, compiled and installed PostgreSQL onto it, and restored the full backup taken from the primary database onto it. Since this wasn't a base backup (using tar, cpio, etc.), how would I apply the WAL logs to this secondary server, to get it up to current? All of the documentation I've read so far uses a base backup. Is there any way to apply the logs generated since that backup created by pg_dump to get the secondary database up to current?
>
Nope, you cannot do that.
--
Guillaume.
http://www.postgresqlfr.orghttp://dalibo.com
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: guillaume@lelarge.info, blittlejohn@posportal.com
Subject: Re: Apply WAL logs after database restore
In-Reply-To: <4B7DBCE6.3060007@lelarge.info>
* 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