pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6676: checkpointer does not work by SIGINT.
4+ messages / 3 participants
[nested] [flat]
* BUG #6676: checkpointer does not work by SIGINT.
@ 2012-06-06 05:33 katsumata.tomonari@po.ntts.co.jp
0 siblings, 1 reply; 4+ messages in thread
From: katsumata.tomonari@po.ntts.co.jp @ 2012-06-06 05:33 UTC (permalink / raw)
To: pgsql-bugs
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.
<PostgreSQL 9.1.3>
change the config file(postgresql.conf) to log information about
checkpoint.
log_checkpoints = on
logging_collector = 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 messages>
LOG: checkpoint starting:
LOG: checkpoint complete: wrote 1 buffers (0.0%); 0 transaction log file(s)
added, 0 removed, 0 recycled; write=0.000 s, sync=0.001 s, total=0.004 s;
sync files=1, longest=0.001 s, average=0.001 s
============
<PostgreSQL 9.2beta2>
change the config file(postgresql.conf) to log information about
checkpoint.
log_checkpoints = on
logging_collector = 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
<no log messages>
============
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" ?
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #6676: checkpointer does not work by SIGINT.
@ 2012-06-06 17:05 Tom Lane <tgl@sss.pgh.pa.us>
parent: katsumata.tomonari@po.ntts.co.jp
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2012-06-06 17:05 UTC (permalink / raw)
To: katsumata.tomonari@po.ntts.co.jp; +Cc: pgsql-bugs
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=18fb9d8d21a28caddb72c7ffbd...
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #6676: checkpointer does not work by SIGINT.
@ 2012-06-07 01:46 Tomonari Katsumata <katsumata.tomonari@po.ntts.co.jp>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Tomonari Katsumata @ 2012-06-07 01:46 UTC (permalink / raw)
To: pgsql-bugs
Hi,
Thank you for explanation about it.
I've understood that it is intended thing.
Sorry to bother you.
regards,
(2012/06/07 2:05), Tom Lane wrote:
> 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=18fb9d8d21a28caddb72c7ffbd...
>
> 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
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #6676: checkpointer does not work by SIGINT.
@ 2012-06-07 02:04 Tom Lane <tgl@sss.pgh.pa.us>
parent: Tomonari Katsumata <katsumata.tomonari@po.ntts.co.jp>
0 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2012-06-07 02:04 UTC (permalink / raw)
To: Tomonari Katsumata <katsumata.tomonari@po.ntts.co.jp>; +Cc: pgsql-bugs
Tomonari Katsumata <katsumata.tomonari@po.ntts.co.jp> writes:
> Thank you for explanation about it.
> I've understood that it is intended thing.
> Sorry to bother you.
No, actually it's a good thing you brought it up, because we're now
reconsidering whether that patch was a good idea or not ...
http://archives.postgresql.org/pgsql-hackers/2012-06/msg00160.php
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2012-06-07 02:04 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-06-06 05:33 BUG #6676: checkpointer does not work by SIGINT. katsumata.tomonari@po.ntts.co.jp
2012-06-06 17:05 ` Tom Lane <tgl@sss.pgh.pa.us>
2012-06-07 01:46 ` Tomonari Katsumata <katsumata.tomonari@po.ntts.co.jp>
2012-06-07 02:04 ` Tom Lane <tgl@sss.pgh.pa.us>
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