Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 9D565632EEC for ; Fri, 9 Jul 2010 14:18:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 79852-06 for ; Fri, 9 Jul 2010 17:18:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outbound.afilias.info (outbound.afilias.info [69.46.124.26]) by mail.postgresql.org (Postfix) with ESMTP id 5F5E86327D0 for ; Fri, 9 Jul 2010 14:18:42 -0300 (ADT) Received: from ms5.yyz2.afilias-ops.info ([10.50.129.111] helo=smtp.afilias.info) by outbound.afilias.info with esmtp (Exim 4.69) (envelope-from ) id 1OXHDk-0007rf-95; Fri, 09 Jul 2010 17:18:40 +0000 Received: from tor-gateway.afilias.info ([199.15.87.4] helo=[10.10.46.12]) by smtp.afilias.info with esmtps (SSLv3:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1OXHDk-0002na-5L; Fri, 09 Jul 2010 17:18:40 +0000 Subject: Re: High Availability: Hot Standby vs. Warm Standby From: Brad Nicholson To: Thomas Kellerer Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Fri, 09 Jul 2010 13:18:40 -0400 Message-ID: <1278695920.1914.55.camel@bnicholson-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.81 tagged_above=-10 required=5 tests=BAYES_05=-0.5, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/32 X-Sequence-Number: 35051 On Fri, 2010-07-09 at 18:31 +0200, Thomas Kellerer wrote: > Hi, > > Rob Wultsch wrote on 09.07.2010 18:14: > >> I am aware that I can use the 9.0 standby server for read only queries, but > >> that is (currently) not something we need > >> > > > > Taking SQL backups without impacting the master might be something to consider. > > Interesting point. Thanks for mentioning that. There is an issue with running your backup from a standby that you need to be aware of. There is potential that a long running query on the standby can conflict with the application of wal records. In this case, you have a choice to either terminate the query and let wal records continue to be applied, or delay the application of the wal until the query completes. Considering that you are looking at HA and asking about the difference in lost transactions between streaming replication and 8.4 PITR, I doubt that letting the standby lag for the duration of the pg_dump is going to be something that interests you. Full details are here: http://www.postgresql.org/docs/9.0/static/hot-standby.html#HOT-STANDBY-CONFLICT -- Brad Nicholson 416-673-4106 Database Administrator, Afilias Canada Corp.