Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id D68D51179B3F for ; Wed, 6 Jun 2012 02:34:03 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sc8sY-0000ec-Sv for pgsql-bugs@postgresql.org; Wed, 06 Jun 2012 05:34:03 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sc8sK-0004xC-Om for pgsql-bugs@postgresql.org; Wed, 06 Jun 2012 05:33:45 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1Sc8sK-0007Ey-2u for pgsql-bugs@postgresql.org; Wed, 06 Jun 2012 05:33:44 +0000 Date: Wed, 06 Jun 2012 05:33:44 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6676: checkpointer does not work by SIGINT. To: pgsql-bugs@postgresql.org From: katsumata.tomonari@po.ntts.co.jp X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/41 X-Sequence-Number: 33268 The following bug has been logged on the website: Bug reference: 6676 Logged by: Tomonari Katsumata Email address: katsumata.tomonari@po.ntts.co.jp PostgreSQL version: Unsupported/Unknown Operating system: RHEL 5.7 x86_64 Description: = Hi, 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. change the config file(postgresql.conf) to log information about checkpoint. log_checkpoints =3D on logging_collector =3D on $ psql postgres -c "create table tbl(i int)" CREATE TABLE $ psql postgres -c "insert into tbl values(1);" INSERT 0 1 $ ps faxww | grep postgres | grep "writer process" 19706 ? Ss 0:00 \_ postgres: writer process 19707 ? Ss 0:00 \_ postgres: wal writer process $ kill -2 19706 LOG: checkpoint starting: LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 transaction log file(s) added, 0 removed, 0 recycled; write=3D0.000 s, sync=3D0.001 s, total=3D0.00= 4 s; sync files=3D1, longest=3D0.001 s, average=3D0.001 s =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D change the config file(postgresql.conf) to log information about checkpoint. log_checkpoints =3D on logging_collector =3D on $ psql postgres -c "create table tbl(i int);" CREATE TABLE $ psql postgres -c "insert into tbl values(1);" INSERT 0 1 $ ps faxww | grep checkpointer 11526 pts/3 S+ 0:00 | \_ grep checkpointer 11482 ? Ss 0:00 \_ postgres: checkpointer process = = $ kill -2 11482 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D I know "latch" is introduced on PostgreSQL9.2, = but I'm not sure this is a bug or not. Is this a desirable behavior of "latch" ?