Re: SIGQUIT on archiver child processes maybe not such a hot idea? - Mailing list pgsql-hackers

From David Steele
Subject Re: SIGQUIT on archiver child processes maybe not such a hot idea?
Date
Msg-id 91ac67ee-0bda-9289-e3bf-ef33a1d3b6be@pgmasters.net
Whole thread Raw
In response to RE: SIGQUIT on archiver child processes maybe not such a hot idea?  ("Tsunakawa, Takayuki" <tsunakawa.takay@jp.fujitsu.com>)
Responses RE: SIGQUIT on archiver child processes maybe not such a hot idea?
List pgsql-hackers
On 9/10/19 9:36 PM, Tsunakawa, Takayuki wrote:
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
>> SIGTERM, which needs to be adjusted.  For another, its
>> SIGQUIT handler does exit(1) not _exit(2), which seems rather
>> dubious ... should we make it more like the rest?  I think
>> the reasoning there might've been that if some DBA decides to
>> SIGQUIT the archiver, we don't need to force a database-wide
>> reset; but why exactly should we tolerate that?
> 
> Can't we use SIGKILL instead of SIGINT/SIGTERM to stop the grandchildren, just in case they are slow to respond to or
ignoreSIGINT/SIGTERM?  That matches the idea of pg_ctl's immediate shutdown.
 

-1, at least not immediately.  Archivers can be complex processes and  
they should be given the chance to do a graceful shutdown.

Regards,
-- 
-David
david@pgmasters.net



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: MSVC buildfarm critters are not running modules' TAP tests
Next
From: "Tsunakawa, Takayuki"
Date:
Subject: RE: SIGQUIT on archiver child processes maybe not such a hot idea?