X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0EE5DD720B for ; Thu, 25 Aug 2005 18:40:38 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 04157-03 for ; Thu, 25 Aug 2005 21:40:35 +0000 (GMT) Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id 5612ED6F4D for ; Thu, 25 Aug 2005 18:40:34 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id DF8E031F52; Thu, 25 Aug 2005 23:53:09 +0200 (MET DST) From: Chris Browne X-Newsgroups: pgsql.general Subject: Re: Postgresql replication Date: Thu, 25 Aug 2005 17:39:39 -0400 Organization: cbbrowne Computing Inc Lines: 47 Message-ID: <60mzn5n1b8.fsf@dba2.int.libertyrms.com> References: <60fyszpby5.fsf@dba2.int.libertyrms.com> <20050824173106.76233.qmail@web53210.mail.yahoo.com> <430D14EA.50502@telus.net> <20050825114411.GA30455@bafster.chello.upc.cz> <60ek8ing2j.fsf@dba2.int.libertyrms.com> <20050825200519.GB23397@gp.word-to-the-wise.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4.17 (Jumbo Shrimp, linux) Cancel-Lock: sha1:y/91Qts70Ex6HasseQgNXqkL9AE= To: pgsql-general@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.109 required=5 tests=[AWL=0.109] X-Spam-Level: X-Archive-Number: 200508/1301 X-Sequence-Number: 82709 steve@blighty.com (Steve Atkins) writes: > On Thu, Aug 25, 2005 at 12:20:52PM -0400, Chris Browne wrote: >> bohdan.linda@seznam.cz (Bohdan Linda) writes: >> > I would have a slight offtopic question, this is issue only of pgsql or >> > there are some other db solutions which have good performance when doing >> > this kind of replication across the world. >> >> Asynchronous multimaster replication is pretty much a generally tough >> problem. >> >> Oracle, Sybase, and DB2 all have methods of doing it; none are either >> simple, straightforward, or transparent to use. >> >> It's a tough problem, in general. > > I've been involved in one project that did multi-master async replication > across geographically separated servers. > > It worked but was operationally so horrible that I've sworn never to > architect a system that requires multi-master replication at the > database ever again. Application level? Possibly. But not at the DB > level. I have heard something of the same argument being thrown at attempts to use things like CORBA to allow you to pretend that there is no difference between local and remote access to things. There are some good arguments to be made, there. You really need to access remote data in different ways than local data because the latency *will* kill you if you ignore it. It's a well and neat idea to try to find ways to hide those differences under the carpet; it is quite likely that the "better way" will involve addressing that somewhere in the application, as opposed to trying to get the DB (or the ORB or other 'distributed thingie') to do it for you. Tables that contain balances (e.g. - credit balances, account balances, and such) would be a good example. You do NOT want to distribute the process of updating balances across some hideous-latency "Great Divide" link. That heads, of course, to application design, not to "pure DB level" activity... -- (format nil "~S@~S" "cbbrowne" "cbbrowne.com") http://www.ntlug.org/~cbbrowne/advocacy.html "Tools that are no good require more skill."