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 DF2DDD7DE4 for ; Fri, 26 Aug 2005 20:07:10 -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 21054-02 for ; Fri, 26 Aug 2005 23:07:09 +0000 (GMT) Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id 5C841D7DEF for ; Fri, 26 Aug 2005 20:07:07 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id F2E3131F51; Sat, 27 Aug 2005 01:19:53 +0200 (MET DST) From: William Yu X-Newsgroups: pgsql.general Subject: Re: Postgresql replication Date: Fri, 26 Aug 2005 16:07:00 -0700 Organization: Hub.Org Networking Services Lines: 25 Message-ID: References: <60fyszpby5.fsf@dba2.int.libertyrms.com> <20050824173106.76233.qmail@web53210.mail.yahoo.com> <430E5116.5000108@travelamericas.com> <430F50D3.9090709@travelamericas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; 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: <430F50D3.9090709@travelamericas.com> To: pgsql-general@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.026 required=5 tests=[AWL=0.026] X-Spam-Level: X-Archive-Number: 200508/1386 X-Sequence-Number: 82794 Chris Travers wrote: > I guess I am thinking along different lines than you. I was thinking > that the simplest solution would be to have master/slave replication for > *approved* transactions only and no replication for initial commits > prior to approval. This makes the assumption that a single transaction > will be committed on a single server, and that a single transaction will > not be split over multiple servers. In this way, you can commit a > pending transaction to any single server, and when it is approved, it > gets replicated via the master. See below for more. This works if you don't care that multiple servers commit transactions that force a budget or bank account to be exceeded. > Thinking about this.... The big issue is that you only want to > replicate the deltas, not the entire account. I am still thinking > master/slave, but something where the deltas are replicated in the > background or where the user, in checking his account, is actually > querying the home server. This second issue could be done via dblink or > DBI-Link and would simply require that a master table linking the > accounts with home servers be replicated (this should, I think, be > fairly low-overhead). Except what you know have is your system fails if any server fail or is inaccessible.