pgsql: Fix various bugs in postmaster SIGKILL processing

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix various bugs in postmaster SIGKILL processing
Date: 2013-10-06 02:54:17
Message-ID: E1VSeU5-0000GM-O0@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix various bugs in postmaster SIGKILL processing

Clamp the minimum sleep time during immediate shutdown or crash to a
minimum of zero, not a maximum of one second. The previous code could
result in a negative sleep time, leading to failure in select() calls.

Also, on crash recovery, reset AbortStartTime as soon as SIGKILL is sent
or abort processing has commenced instead of waiting until the startup
process completes. Reset AbortStartTime as soon as SIGKILL is sent,
too, to avoid doing that repeatedly.

Per trouble report from Jeff Janes on
CAMkU=1xd3=wFqZwwuXPWe4BQs3h1seYo8LV9JtSjW5RodoPxMg(at)mail(dot)gmail(dot)com

Author: MauMau

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/bf2617981ceb88bdcd3cba58308d68f0c4ea3de2

Modified Files
--------------
src/backend/postmaster/postmaster.c | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2013-10-06 04:25:06 Re: [COMMITTERS] pgsql: Add DISCARD SEQUENCES command.
Previous Message Noah Misch 2013-10-05 22:07:57 pgsql: pgbench: Remove stray use of "float" math.