Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang
Date
Msg-id 4660.1353513558@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang  (Hari Babu <haribabu.kommi@huawei.com>)
List pgsql-bugs
Hari Babu <haribabu.kommi@huawei.com> writes:
> I have a query regarding the changing of pmState only incase of SIGTERM but
> not incase of SIGINT.
> Is there any reason to handle like this? or Is it ok to modify the handling
> of pmState in SIGTERM same as SIGINT?

AFAICT the "smart shutdown" code path is okay: it transitions to
PM_WAIT_READONLY state, and then PostmasterStateMachine issues SIGTERM
to the startup process and goes to PM_WAIT_BACKENDS state.  Perhaps this
could be done more clearly but I'm disinclined to mess with it.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Hari Babu
Date:
Subject: Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang
Next
From: "Greg Sabino Mullane"
Date:
Subject: Re: Prepared Statement Name Truncation