pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Browne <cbbrowne@acm.org>
To: pgsql-general@postgresql.org
Subject: Re: Postgresql replication
Date: Thu, 25 Aug 2005 17:39:39 -0400
Message-ID: <60mzn5n1b8.fsf@dba2.int.libertyrms.com> (raw)
References: <60fyszpby5.fsf@dba2.int.libertyrms.com>
	<20050824173106.76233.qmail@web53210.mail.yahoo.com>
	<deivg4$ura$1@news.hub.org>
	<430D14EA.50502@telus.net>
	<dejqcu$1slo$1@news.hub.org>
	<20050825114411.GA30455@bafster.chello.upc.cz>
	<60ek8ing2j.fsf@dba2.int.libertyrms.com>
	<20050825200519.GB23397@gp.word-to-the-wise.com>

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."



view thread (91+ messages)  latest in thread

Message-ID: <60mzn5n1b8.fsf@dba2.int.libertyrms.com>
Permalink:  ../60mzn5n1b8.fsf@dba2.int.libertyrms.com/
Also on:    postgresql.org/message-id/60mzn5n1b8.fsf@dba2.int.libertyrms.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: cbbrowne@acm.org
  Subject: Re: Postgresql replication
  In-Reply-To: <60mzn5n1b8.fsf@dba2.int.libertyrms.com>
  References: <60fyszpby5.fsf@dba2.int.libertyrms.com> <20050824173106.76233.qmail@web53210.mail.yahoo.com> <deivg4$ura$1@news.hub.org> <430D14EA.50502@telus.net> <dejqcu$1slo$1@news.hub.org> <20050825114411.GA30455@bafster.chello.upc.cz> <60ek8ing2j.fsf@dba2.int.libertyrms.com> <20050825200519.GB23397@gp.word-to-the-wise.com> <60mzn5n1b8.fsf@dba2.int.libertyrms.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox