Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id DE0F0633662 for ; Wed, 8 Apr 2009 04:15:39 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 50507-02 for ; Wed, 8 Apr 2009 04:15:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp3.clear.net.nz (smtp3.clear.net.nz [203.97.33.64]) by mail.postgresql.org (Postfix) with ESMTP id 1BF73633377 for ; Wed, 8 Apr 2009 04:15:31 -0300 (ADT) Received: from zmori.markir.net (121-73-184-32.dsl.telstraclear.net [121.73.184.32]) by smtp3.clear.net.nz (CLEAR Net Mail) with ESMTP id <0KHR00ACDTHSD630@smtp3.clear.net.nz> for pgsql-performance@postgresql.org; Wed, 08 Apr 2009 19:15:29 +1200 (NZST) Date: Wed, 08 Apr 2009 19:15:28 +1200 From: Mark Kirkwood Subject: Re: Best replication solution? In-reply-to: <20090407171803.GQ14950@shinkuro.com> To: Andrew Sullivan , pgsql-performance@postgresql.org Message-id: <49DC4F10.6090302@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: <49D8FA31.8010407@on-track.ca> <20090406123529.GA14675@shinkuro.com> <49DB2B66.1080801@paradise.net.nz> <20090407171803.GQ14950@shinkuro.com> User-Agent: Thunderbird 2.0.0.19 (X11/20090117) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.117 tagged_above=0 required=5 tests=AWL=-0.782, FS_REPLICA=1.179, SARE_SPEC_REPLICA=0.72 X-Spam-Level: * X-Archive-Number: 200904/151 X-Sequence-Number: 33518 Andrew Sullivan wrote: > > I should have stated that differently. First, you're right that if > you don't know where to look or what to look for, you can easily be > unaware of nodes being out of sync. What's not a problem with Slony > is that the nodes can get out of internally consistent sync state: if > you have a node that is badly lagged, at least it represents, for > sure, an actual point in time of the origin set's history. Some of > the replication systems aren't as careful about this, and it's > possible to get the replica into a state that never happened on the > origin. That's much worse, in my view. > > In addition, it is not possible that Slony's system tables report the > replica as being up to date without them actually being so, because > the system tables are updated in the same transaction as the data is > sent. It's hard to read those tables, however, because you have to > check every node and understand all the states. > > > Yes, and nicely explained! > (on Londiste DDL + slave chaining)... > Well, those particular features -- which are indeed the source of much > of the complexity in Slony -- were planned in from the beginning. > Londiste aimed to be simpler, so it would be interesting to see > whether those features could be incorporated without the same > complication. > > > > Yeah, that's the challenge! Personally I would like DDL to be possible without any special wrappers or precautions, as the usual (accidental) breakage I end up looking at in Slony is because someone (or an app's upgrade script) has performed an ALTER TABLE directly on the master schema... Cheers Mark