Re: signal and startup process - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: signal and startup process
Date
Msg-id 1287080278.1725.1092.camel@ebony
Whole thread Raw
In response to signal and startup process  (Fujii Masao <masao.fujii@gmail.com>)
List pgsql-hackers
Committed.

On Thu, 2010-10-14 at 12:57 +0900, Fujii Masao wrote:
> Hi,
> 
> It takes nonsensically extra several seconds to shut down the standby server.
> This is because the startup process cannot respond immediately the SIGTERM
> signal sent by postmaster for the shutdown while it's sleeping on WaitLatch.
> This delays the shutdown for up to the sleep time on WaitLatch (currently
> 5 seconds).
> 
> The signal handlers of the startup process should call SetLatch to respond
> the signals even while it's sleeping on WaitLatch, like those of walsender
> already do. The attached patch does this.
> 
> Regards,
> 

-- Simon Riggs           www.2ndQuadrant.comPostgreSQL Development, 24x7 Support, Training and Services



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Bug in writeTimeLineHistory
Next
From: Simon Riggs
Date:
Subject: Re: Docs for archive_cleanup_command are poor