Re: Synchronous Log Shipping Replication

From: Hannu Krosing <hannu(at)2ndQuadrant(dot)com>
To: Markus Wanner <markus(at)bluegap(dot)ch>
Cc: Simon Riggs <simon(at)2ndQuadrant(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <bruce(at)momjian(dot)us>, ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Synchronous Log Shipping Replication
Date: 2008-09-10 08:24:01
Message-ID: 1221035041.9487.15.camel@huvostro
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 2008-09-10 at 10:06 +0200, Markus Wanner wrote:
> Hi,
>
> Simon Riggs wrote:
> > 1. Standby contacts primary and says it would like to catch up, but is
> > currently at point X (which is a point at, or after the first consistent
> > stopping point in WAL after standby has performed its own crash
> > recovery, if any was required).
> > 2. primary initiates data transfer of old data to standby, starting at
> > point X
> > 3. standby tells primary where it has got to periodically
> > 4. at some point primary decides primary and standby are close enough
> > that it can now begin streaming "current WAL" (which is always the WAL
> > up to wal_buffers behind the the current WAL insertion point).
>
> Hm.. wouldn't it be simpler, to start streaming right away and "cache"
> that on the standby until it can be applied? I.e. a protocol like:

Good idea!

This makes everything simpler, as user has to do only 4 things

1. start slave in "receive WAL, dont apply" mode
2. start walshipping on master
3. copy files from master to slave.
4. restart slave in "receive WAL" mode

all else will happen automatically.

---------------
Hannu

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2008-09-10 08:25:07 Re: Synchronous Log Shipping Replication
Previous Message Pavan Deolasee 2008-09-10 08:15:59 Re: Synchronous Log Shipping Replication