Re: Replication

From: Gerry Reno <greno(at)verizon(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Replication
Date: 2009-06-23 12:34:10
Message-ID: 4A40CBC2.1000206@verizon.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Craig Ringer wrote:
> On Mon, 2009-06-22 at 22:20 -0400, Gerry Reno wrote:
>
>
>> Here is a link that describes the technique:
>> http://www.onlamp.com/pub/a/onlamp/2006/04/20/advanced-mysql-replication.html?page=1
>>
>
> Ah. You were referring to multiple-master replication, and your
> reference to setting non-overlapping sequences referred to avoiding
> collisions caused by inserts on two different masters. Yes, using
> non-overlapping allocation ranges for sequences is indeed one way to
> handle that, but it's not actually related to what I was talking about
> anyway.
>
>
> What I was referring to in the parent post was an issue with
> statement-based replication of concurrent statements sharing a sequence.
> It's completely unrelated; both statements are running on the SAME
> server (master) and replicating to the slave.
I think mysql actually turns off autoincrement on the slave inserts and
just plugs them in. Since the masters have non-overlapping allocation
this assures that the slaves will have proper sequences as well.

Regards,
Gerry

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Fetter 2009-06-23 12:38:42 Re: [BUGS] Integrity check
Previous Message BlackMage 2009-06-23 12:15:10 Re: Inserting Values into Interval