pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hari Babu <haribabu.kommi@huawei.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang
Date: Wed, 21 Nov 2012 10:59:18 -0500
Message-ID: <4660.1353513558@sss.pgh.pa.us> (raw)
In-Reply-To: <003201cdc7ec$982ae650$c880b2f0$@kommi@huawei.com>
References: <E1TWWd4-0008AD-9E@wrigleys.postgresql.org>
	<10253.1353353527@sss.pgh.pa.us>
	<005201cdc6d7$fb988f00$f2c9ad00$@kommi@huawei.com>
	<14768.1353445229@sss.pgh.pa.us>
	<003201cdc7ec$982ae650$c880b2f0$@kommi@huawei.com>

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




view thread (8+ messages)

Message-ID: <4660.1353513558@sss.pgh.pa.us>
Permalink:  ../4660.1353513558@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4660.1353513558@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, haribabu.kommi@huawei.com
  Subject: Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang
  In-Reply-To: <4660.1353513558@sss.pgh.pa.us>
  References: <E1TWWd4-0008AD-9E@wrigleys.postgresql.org> <10253.1353353527@sss.pgh.pa.us> <005201cdc6d7$fb988f00$f2c9ad00$@kommi@huawei.com> <14768.1353445229@sss.pgh.pa.us> <003201cdc7ec$982ae650$c880b2f0$@kommi@huawei.com> <4660.1353513558@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox