Fix for erroneous warning on Shutdown

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: Fix for erroneous warning on Shutdown
Date: 2004-06-11 11:59:56
Message-ID: 1086955195.26694.4991.camel@stromboli
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32 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 Content-Type Size
bgwriter.patch text/x-patch 668 bytes

In response to

Responses

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Manfred Spraul 2004-06-11 15:50:09 Re: Compiling libpq with VisualC
Previous Message Andreas Pflug 2004-06-11 09:41:11 Re: [pgsql-hackers-win32] Tablespaces

Browse pgsql-patches by date

  From Date Subject
Next Message Manfred Spraul 2004-06-11 15:50:09 Re: Compiling libpq with VisualC
Previous Message Zeugswetter Andreas SB SD 2004-06-11 10:14:37 path.c char[strlen("xxx")] not portable