pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hari Babu <haribabu.kommi@huawei.com>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
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 19:02:03 +0530
Message-ID: <003201cdc7ec$982ae650$c880b2f0$@kommi@huawei.com> (raw)
In-Reply-To: <14768.1353445229@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>

Tom Lane <tgl@sss.pgh.pa.us > writes:
>I concluded that it probably wasn't a good idea to have the additional
state transition in SIGINT handling.  Generally >PM_STARTUP means "we're
running the startup process and nothing else", and that's useful state info
that we shouldn't >throw away lightly.

I tested the patch, it is working fine.

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?


Regards,
Hari babu.





view thread (8+ messages)  latest in thread

Message-ID: <003201cdc7ec$982ae650$c880b2f0$@kommi@huawei.com>
Permalink:  ../003201cdc7ec$982ae650$c880b2f0$@kommi@huawei.com/
Also on:    postgresql.org/message-id/003201cdc7ec$982ae650$c880b2f0$@kommi@huawei.com

 · 

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: haribabu.kommi@huawei.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #7643: Issuing a shutdown request while server startup leads to server hang
  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>

* 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