Re: Latches, signals, and waiting - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Latches, signals, and waiting
Date
Msg-id AANLkTimM0xUu87Ctg-1z8t4gnTRXMei9AQRkqYO9jajt@mail.gmail.com
Whole thread Raw
In response to Latches, signals, and waiting  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Wed, Sep 15, 2010 at 10:55 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> So I'm wondering if we couldn't eliminate the five-second sleep
> requirement here too.

That would make the shutdown time longer since startup process currently
cannot respond to SIGTERM and SIGHUP immediately. To avoid this, I think
that we should change the signal handlers of startup process so that they
call WakeupRecovery.

The attached patch makes StartupProcSigHupHandler and StartupProcShutdownHandler
call WakeupRecovery.

Regards,

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

Attachment

pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Latches, signals, and waiting
Next
From: Fujii Masao
Date:
Subject: Re: Latches, signals, and waiting