Re: Latches, loop and exit - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Latches, loop and exit
Date
Msg-id AANLkTimyraBazJ3jNjTwTbnYkttDH3bt_rPT=tVT50ga@mail.gmail.com
Whole thread Raw
In response to Re: Latches, loop and exit  (Simon Riggs <simon@2ndQuadrant.com>)
List pgsql-hackers
On Wed, Sep 15, 2010 at 3:19 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
> For SIGUSR2, you're right.
>
> However, if the following clause is ever invoked, then the loop does
> have problems and we leave when not caught up.
>
> if (!PostmasterIsAlive(true))
>        exit(1);

In normal shutdown case, that clause is not invoked since postmaster
exits after walsender exits. That is, the clause is for emergency case,
e.g., case where SIGKILL arrives at postmaster. Even in such an
emergency case, you think walsender should send all outstanding WAL?

Regards,

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


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Latches, loop and exit
Next
From: Heikki Linnakangas
Date:
Subject: Re: Latches, loop and exit