Re: Latches, signals, and waiting
Fujii Masao <masao.fujii@gmail.com>
From: Fujii Masao <masao.fujii@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Heikki Linnakangas <heikki@enterprisedb.com>, pgsql-hackers@postgresql.org
Date: 2010-09-16T04:47:52Z
Lists: pgsql-hackers
Attachments
- signal_handler_wakeup_recovery_v1.patch (application/octet-stream) patch v1
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