Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 681D8650713 for ; Tue, 15 Jul 2008 18:01:48 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 95354-02 for ; Tue, 15 Jul 2008 18:01:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gwmta.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by postgresql.org (Postfix) with ESMTP id 24BD3650697 for ; Tue, 15 Jul 2008 18:01:45 -0300 (ADT) Received: from Courts-MTA by gwmta.wicourts.gov with Novell_GroupWise; Tue, 15 Jul 2008 15:38:23 -0500 Message-Id: <487CC4BB.EE98.0025.0@wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 7.0.3 Date: Tue, 15 Jul 2008 15:38:11 -0500 From: "Kevin Grittner" To: "Lance Campbell" , Subject: Re: Backup and failover process References: <487C9741.EE98.0025.0@wicourts.gov> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/142 X-Sequence-Number: 29752 >>> "Campbell, Lance" wrote: > What happens if you take an SQL snapshot of a database while > creating WAL archives then later restore from that SQL snapshot and > apply those WAL files? What do you mean by "an SQL snapshot of a database"? WAL files only come into play for backup techniques which involve file copies, not dumps done using SQL commands (like pg_dump). > Will there be a problem if the transactions > within the newest WAL file after the SQL snapshot was taken cause > problems when they are applied? Point In Time Recovery (PITR) backup techniques allow you to restore to a specified point in time, so you could restore up to the point immediately before the problem transactions. > I would assume yes but I wanted to > check if there was some type of timestamp that would prevent an issue > from occurring? Take another look at this section -- in particular, recovery_target_time. I hope this helps. -Kevin