Re: pg_ctl emits strange warning message - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: pg_ctl emits strange warning message
Date
Msg-id AANLkTinCgAygX5gLE7J1A8gPQOHzMxBUkvuuSJ_W9K0Z@mail.gmail.com
Whole thread Raw
In response to Re: pg_ctl emits strange warning message  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Responses Re: pg_ctl emits strange warning message  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
On Tue, Sep 14, 2010 at 12:35 AM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:
> Hmm, looking at this more closely, I'm a bit confused. We already rename
> away backup_label at the beginning of recovery. Under what circumstances do
> we have a problem? This starts to seem like a complete non-issue to me.

A checkpoint record is read before backup_label file is renamed, so
the problem happens if shutdown is requested while the standby server
is waiting for the WAL containing a checkpoint record to arrive from
the master. This happened some times in my box when testing HS/SR.

To avoid the problem, we should rename backup_label before reading
any WAL record?

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Policy decisions and cosmetic issues remaining forthe git conversion
Next
From: Hitoshi Harada
Date:
Subject: Re: top-level DML under CTEs