Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 56D40632661 for ; Sat, 10 Jul 2010 09:44:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 86829-09 for ; Sat, 10 Jul 2010 12:44:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mail.postgresql.org (Postfix) with ESMTP id 1F6A5632284 for ; Sat, 10 Jul 2010 09:44:39 -0300 (ADT) Received: from [192.168.1.208] (81-179-24-86.dsl.pipex.com [81.179.24.86]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0MXTda-1OdXIw2naA-00VuR5; Sat, 10 Jul 2010 14:44:36 +0200 Message-ID: <4C386B33.8090708@2ndquadrant.com> Date: Sat, 10 Jul 2010 13:44:35 +0100 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Thomas Kellerer CC: pgsql-admin@postgresql.org Subject: Re: High Availability: Hot Standby vs. Warm Standby References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:xHzL/1RH59U+lUgU1MBJSoxKFF/94swX2egUmXqDazo M2zt5jEcVOqFyRJEQKaeefusOJ1ev+cvy5iMrfQdBpgQpSOqpk 2BdHmCOgJi4IBDJJ1VYpEzcnZSsQ0tIu+1KDsp/a2bNdlENTCR LUACxexS8gxUiD61Kc2y1Q8/Xn/Wb9ppgUS4xVqjmKP18zbDIF 4NDoUCWNnLhrZRUJ54luod1TTD44fu2qMzWNYHK3J4= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201007/41 X-Sequence-Number: 35060 Thomas Kellerer wrote: > I'm wondering about the differences when the failover situation > occurs. From reading the docs, I get the impression that 9.0's > streaming replication might be faster than 8.4's WAL shipping, but > otherwise offers the same level of data protection. > Is there a difference in how much data could potentially be lost in > case of a failover? > E.g. because 9.0 replicates the changes quicker than 8.4? There's nothing that 9.0 does that you can' t do with 8.4 and the right software to aggressively ship partial files around. In practice though, streaming shipping is likely to result in less average data loss simply because it will do the right thing to ship new transactions automatically. Getting the same reaction time and resulting low amount of lag out of an earlier version requires a level of external script configuration that few sites every actually manage to obtain. You can think of the 9.0 features as mainly reducing the complexity of installation needed to achieve low latency significantly. I would bet that if you tried to setup 8.4 to achieve the same quality level in terms of quick replication, your result would be more fragile and buggy than just using 9.0--the bugs would be just be in your own code rather than in the core server. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.us