Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id CD0DE1337999 for ; Wed, 30 Mar 2011 20:15:01 -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 92691-01 for ; Wed, 30 Mar 2011 23:14:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from hogranch.com (hogranch.com [75.101.82.47]) by mail.postgresql.org (Postfix) with ESMTP id B00621337B83 for ; Wed, 30 Mar 2011 20:14:42 -0300 (ADT) Received: from [127.0.0.1] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id p2UNEcc05427 for ; Wed, 30 Mar 2011 16:14:38 -0700 Message-ID: <4D93B95E.10002@hogranch.com> Date: Wed, 30 Mar 2011 16:14:38 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: Re: pg_restore References: <4D93A272.9000101@hogranch.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/1046 X-Sequence-Number: 174307 On 03/30/11 4:08 PM, Mike Orr wrote: > 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. > look at the 'warm standby' stuff. just realize that this backup HAS to be readonly. > The backup server exists in case there's something like an earthquake > at the main data center. Something that could cause a regional > communication blackout and prevent the sysadmins from accessing the > backup server remotely. The site is a data-sharing tool for emergency > responders across the country. They may be in another region working > on an unrelated incident, and need the website. So the backup site has > to be already running and loaded with data -- we can't depend on a > sysadmin being able to log in remotely to turn it on distributed failover is tricky stuff. the standby *could* be monitoring the active server and initiate automatic failover if it goes down, but you don't want spontaneous failover if communications between the servers is disrupted or you end up with two masters.