Re: Bidirectional replication - Mailing list pgsql-general

From Joshua Tolley
Subject Re: Bidirectional replication
Date
Msg-id 4dc3696d.8326440a.2428.ffff89b2@mx.google.com
Whole thread Raw
In response to Re: Bidirectional replication  (John R Pierce <pierce@hogranch.com>)
Responses Re: Bidirectional replication  (Andrew Sullivan <ajs@crankycanuck.ca>)
List pgsql-general
On Thu, May 05, 2011 at 08:13:55PM -0700, John R Pierce wrote:
> On 05/05/11 8:05 PM, Joshua Tolley wrote:
>> Actually, Bucardo doesn't do statement replication. It, like Slony for
>> instance, replicates data, not SQL statements. And as you pointed out, it does
>> do bidirectional replication in a way that's sufficient for some use cases.
>
> does it use triggers for replication, similar to Slony, then?
> obviously, it can't be doing WAL level replication or it wouldn't be
> able to do any sort of master-master.

Exactly. It doesn't function exactly like Slony does under the hood, of
course, but it is trigger based. One notable difference between Bucardo and
Slony is that whereas Slony's triggers store the entire row data in a separate
log table when something changes, Bucardo stores only the primary key. As a
result, Bucardo doesn't apply each transaction to the replica databases, but
rather a set of all transactions that took place on the source since the last
time it synchronized things. For whatever that's worth.

--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.com

Attachment

pgsql-general by date:

Previous
From: Joshua Tolley
Date:
Subject: Re: Bidirectional replication
Next
From: John R Pierce
Date:
Subject: Re: Bidirectional replication