Fix for erroneous warning on Shutdown - Mailing list pgsql-patches

From Simon Riggs
Subject Fix for erroneous warning on Shutdown
Date
Msg-id 1086955195.26694.4991.camel@stromboli
Whole thread Raw
In response to Re: pg_ctl using START with paths needing quotes  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: Fix for erroneous warning on Shutdown  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Fix for erroneous warning on Shutdown  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
Minor patch to correct erroneous warning in cvs tip, believed to be a
very minor regression.

When a shutdown was requested within CHECKPOINT_SECONDS of a checkpoint,
the shutdown code in the bgwriter (which has does checkpointing) would
issue the erroneous message:

LOG:  checkpoints are occurring too frequently (%d seconds apart)
HINT:  Consider increasing the configuration parameter
"checkpoint_segments".

Clearly, this should only occur when specific checkpoint requests have
been made, shutdown checkpoints should not be included in the warning.

Best regards, Simon Riggs

Attachment

pgsql-patches by date:

Previous
From: "Zeugswetter Andreas SB SD"
Date:
Subject: path.c char[strlen("xxx")] not portable
Next
From: Manfred Spraul
Date:
Subject: Re: Compiling libpq with VisualC