Re: Sync Rep: First Thoughts on Code

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Sync Rep: First Thoughts on Code
Date: 2008-12-05 09:59:58
Message-ID: 1228471198.20796.593.camel@hp_dx2400_1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Fri, 2008-12-05 at 16:00 +0900, Fujii Masao wrote:

> On Fri, Dec 5, 2008 at 12:09 PM, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
> >> I was expecting you to have walreceiver and startup share an end of WAL
> >> address via shared memory, so that startup never tries to read past end.
> >> That way we would be able to begin reading a WAL file *before* it was
> >> filled. Waiting until a file fills means we still have to have
> >> archive_timeout set to ensure we switch regularly.
> >
> > You mean that not pg_standby but startup process waits for the next
> > WAL available? If so, I agree with you in the future. That is, I just think
> > that this is next TODO because there are many problems which we
> > should resolve carefully to achieve it. But, if it's essential for 8.4, I will
> > tackle it. What is your opinion? I'd like to clear up the goal for 8.4.
>
> Umm.. on second thought, this feature (continuous recovery without
> pg_standby) seems to be essential for 8.4. So, I will try it.

Sounds good. Perhaps you can share what changed your mind in those 4
hours...

Could we start with pictures and some descriptions first, so we know
we're on the right track? I foresee no coding issues.

My understanding is that we start with a normal log shipping
architecture, then we switch into continuous recovery mode. So we do use
pg_standby at beginning, but then it gets turned off.

Let's look at all of the corner cases also:
* standby keeps pace with primary (desired state)
* standby falls behind primary
* standby restarts to change shmmem settings
etc

--
Simon Riggs www.2ndQuadrant.com
PostgreSQL Training, Services and Support

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2008-12-05 10:09:28 Re: Sync Rep: First Thoughts on Code
Previous Message KaiGai Kohei 2008-12-05 09:44:26 Updates of SE-PostgreSQL 8.4devel patches (r1280)