Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id D508A1179B44 for ; Wed, 6 Jun 2012 14:05:49 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ScJg1-000676-Hg for pgsql-bugs@postgresql.org; Wed, 06 Jun 2012 17:05:48 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q56H5OGI012125; Wed, 6 Jun 2012 13:05:25 -0400 (EDT) From: Tom Lane To: katsumata.tomonari@po.ntts.co.jp cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6676: checkpointer does not work by SIGINT. In-reply-to: References: Comments: In-reply-to katsumata.tomonari@po.ntts.co.jp message dated "Wed, 06 Jun 2012 05:33:44 -0000" Date: Wed, 06 Jun 2012 13:05:24 -0400 Message-ID: <12124.1339002324@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/44 X-Sequence-Number: 33271 katsumata.tomonari@po.ntts.co.jp writes: > Now I'm testing the behavior of checkpointer, > and I found a difference with PostgreSQL9.1 behavior. > When I send SIGINT signal to writer process on PostgreSQL9.1, > writer process starts checkpoint. > But, when I send SIGINT signal to checkpointer on PostgreSQL9.2beta2, > checkpointer doesn't start checkpoint. AFAICT, the checkpointer does consider starting a checkpoint, but it decides not to do one, because of this recent change: http://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=18fb9d8d21a28caddb72c7ffbdd7b96d52ff9724 If you had done enough updates since the last checkpoint, it would do one. So this isn't a bug, but an intentional reduction in checkpoint frequency. (Note that sending SIGINT is not, and never has been, equivalent to forcing a checkpoint.) regards, tom lane