Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 209126326D3 for ; Thu, 18 Feb 2010 18:19:31 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 50938-08 for ; Thu, 18 Feb 2010 22:19:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd-17937.dedibox.fr (sd-17937.dedibox.fr [88.191.100.74]) by mail.postgresql.org (Postfix) with ESMTP id 9C0E26336D1 for ; Thu, 18 Feb 2010 18:19:20 -0400 (AST) Received: from [192.168.10.3] (ASte-Genev-Bois-153-1-74-5.w86-203.abo.wanadoo.fr [86.203.160.5]) by sd-17937.dedibox.fr (Postfix) with ESMTPA id 260D83B8F5; Thu, 18 Feb 2010 23:19:19 +0100 (CET) Message-ID: <4B7DBCE6.3060007@lelarge.info> Date: Thu, 18 Feb 2010 23:19:18 +0100 From: Guillaume Lelarge User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: Brad Littlejohn CC: "'pgsql-admin@postgresql.org'" Subject: Re: Apply WAL logs after database restore References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201002/139 X-Sequence-Number: 33742 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.org http://dalibo.com