On Tue, 2008-09-09 at 18:26 +0300, Heikki Linnakangas wrote:
> Simon Riggs wrote:
> > Don't understand. I am referring to the logic at the top of
> > AdvanceXLInsertBuffer(). We would need to wait for all people reading
> > the contents of wal_buffers.
>
> Oh, I see.
>
> If a slave falls behind, how does it catch up?
That is the right question.
> I guess you're saying
> that it can't fall behind, because the master will block before that
> happens. Also in asynchronous replication?
Yes, it can fall behind in async mode. sysadmin must not let it.
> And what about when the slave
> is first set up, and needs to catch up with the master?
We need an initial joining mode while they "match speed". We must allow
for the case where the standby has been recycled, or the network has
been down for a medium-long period of time.
-- Simon Riggs www.2ndQuadrant.comPostgreSQL Training, Services and Support