Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 4E34F9FB4C6 for ; Tue, 10 Jul 2007 13:32:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 25994-02 for ; Tue, 10 Jul 2007 13:32:34 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id DDAAF9FBC59 for ; Tue, 10 Jul 2007 13:32:30 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1I8IdZ-0004V2-81 for pgsql-general@postgresql.org; Tue, 10 Jul 2007 12:32:29 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id C89DC404E; Tue, 10 Jul 2007 12:32:23 -0400 (EDT) Date: Tue, 10 Jul 2007 12:32:23 -0400 From: Andrew Sullivan To: pgsql-general@postgresql.org Subject: Re: PostGreSQL Replication Message-ID: <20070710163223.GC30870@phlogiston.dyndns.org> References: <1183810616.126249.189310@d55g2000hsg.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1183810616.126249.189310@d55g2000hsg.googlegroups.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/421 X-Sequence-Number: 117022 On Sat, Jul 07, 2007 at 05:16:56AM -0700, Gabriele wrote: > Let's have a server which feed data to multiple slaves, usually using > direct online connections. Now, we may want to allow those client to > sync the data to a local replica, work offline and then resync the > data back to the server. Which is the easiest way to approach this > problem? Write yourself a new system that does it? To my knowledge, nobody has yet built a production-ready system that can do this sort of multi-master merge-back replication. I can think of possible ways you could bodge this up using Slony-I and log shipping, but I don't think it'd be pretty. > resource on this topic? I've found people talking about Slony-I, what > can you tell me on this tool? Are there other tools? You can find out more about Slony-I at . > Moreover, additionally to the previous question, let's take the case i > do have multiple indipendent and separate server and then i want to > upload the information of these server (actually not everything but a > subset of the data) to another server (here we have a unidirectional > comm, as opposed to previous bidirectional comm and we have asymmetric > structure as opposed to the previous exact replica), what are the > tools, documentation, best practices or other resources to approach > this problem? This also sounds like a multimaster problem, and again I know of no system that currently supports what you're talking about. This is easier to bodge together under Slony using views and such like, but it's still not trivial. If you wish to discuss how to do this with Slony, I suggest taking it up on that list (available from the site mentioned above). A -- Andrew Sullivan | ajs@crankycanuck.ca A certain description of men are for getting out of debt, yet are against all taxes for raising money to pay it off. --Alexander Hamilton