Re: Fast Shutdown (SIGINT) results in a CHECKPOINT...

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Sean Chittenden <sean(at)chittenden(dot)org>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Fast Shutdown (SIGINT) results in a CHECKPOINT...
Date: 2013-03-20 20:55:29
Message-ID: 514A2241.7000202@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 3/20/13 4:28 PM, Sean Chittenden wrote:
> For a while now I've known that sending a SIGINT can trigger a CHECKPOINT, but I don't know if this is intentional or a bug.

It's intentional. If you don't want that, use SIGQUIT. That's how they
are different.

Of course, when using SIGQUIT, you will have to spend the time you saved
on the checkpoint for the recovery at startup. So you have to put in
the time either way.

It is not unheard of that a shutdown can take minutes. That's why the
-t option was added to pg_ctl some time ago.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2013-03-20 21:18:30 Re: State of the art re: group default privileges
Previous Message David Rees 2013-03-20 20:43:36 Re: Can't terminate hung COPY