Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id CF17E1337999 for ; Wed, 30 Mar 2011 20:18:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 64060-08 for ; Wed, 30 Mar 2011 23:18:14 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 8218F1337B83 for ; Wed, 30 Mar 2011 20:18:14 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 1919B348046; Wed, 30 Mar 2011 16:18:14 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7gWb-drIZRll; Wed, 30 Mar 2011 16:18:12 -0700 (PDT) Received: from [192.168.1.137] (71-94-248-62.dhcp.mdfd.or.charter.com [71.94.248.62]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id D8125348022; Wed, 30 Mar 2011 16:18:11 -0700 (PDT) Subject: Re: pg_restore From: "Joshua D. Drake" Reply-To: jd@commandprompt.com To: Mike Orr Cc: pgsql-general@postgresql.org In-Reply-To: References: <4D93A272.9000101@hogranch.com> Content-Type: text/plain; charset="UTF-8" Organization: Command Prompt, Inc. Date: Wed, 30 Mar 2011 16:17:19 -0700 Message-ID: <1301527039.10914.70.camel@jd-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201103/1047 X-Sequence-Number: 174308 > > however, you might look at PITR and/or WAL log shipping rather than > > dump/restore. this would only update new data, and when you playback the > > WAL log on the backup server bring it up to whatever point in time you want. > > I looked at PITR and WAL, but it looks like I can't have the backup > database running and answering queries while it's WAL'ing. I'd have to > log in and switch it to normal mode and start the webapp, and that's > what I may not be able to do if the backup server were needed. You can if you are using 9.x, take a look at the HS stuff. Joshua D. Drake -- PostgreSQL.org Major Contributor Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579 Consulting, Training, Support, Custom Development, Engineering http://twitter.com/cmdpromptinc | http://identi.ca/commandprompt