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 5E872D7735 for ; Thu, 25 Aug 2005 18:13:24 -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 94931-09 for ; Thu, 25 Aug 2005 21:13:22 +0000 (GMT) Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id DC2A0D772B for ; Thu, 25 Aug 2005 18:13:21 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 8E75831F50; Thu, 25 Aug 2005 23:25:56 +0200 (MET DST) From: William Yu X-Newsgroups: pgsql.general Subject: Re: Postgresql replication Date: Thu, 25 Aug 2005 14:13:14 -0700 Organization: Hub.Org Networking Services Lines: 20 Message-ID: References: <60fyszpby5.fsf@dba2.int.libertyrms.com> <20050825114411.GA30455@bafster.chello.upc.cz> <200508251406.52090.david.goodenough@btconnect.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en In-Reply-To: <200508251406.52090.david.goodenough@btconnect.com> To: pgsql-general@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.029 required=5 tests=[AWL=0.029] X-Spam-Level: X-Archive-Number: 200508/1297 X-Sequence-Number: 82705 David Goodenough wrote: > The most obvious one that does exactly this (generic multi-master > replication) is Lotus Domino. It is not a relational DB, but not sufficiently > far off to stop the analogy. > > Domino marks each document with a binary value which identifies the > server (built from a hash of the server name and the time the DB was > created) and a timestamp when it was last modified, and also each document > (record) has an ID (like OIDs). More recent versions also do this at a field > level to avoid conflicts and speed replication. When two servers replicate This system sounds ok for documents and general data that can always be revived via version control/history. But I can't see how this would work for financial transactions where you're dealing with money and bank accounts. Suppose I have $100 in my account. I decided to login to multiple servers and wire transfer $100 to another account on every server. And I hit submit exactly at the same time for every server so check. Sure they can resolve the conflict afterwards in terms of saying in terms of which transfer to kill off. But the fact is that my other account has that N x $100 already and I've just fleeced the bank.