public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tianyin Xu <[email protected]>
To: [email protected]
Subject: The relation between "checkpoint_timeout" and "checkpoint_warning" is missing
Date: Fri, 8 Feb 2013 01:38:09 -0800
Message-ID: <CABBDWwfVg275EjUd0daBN7Vd9yaCZewSgbzd3_8ciEXY5XK0tQ@mail.gmail.com> (raw)
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-docs>

Hi, PG,

In "18.5.2. Checkpoints" (
http://www.postgresql.org/docs/9.2/static/runtime-config-wal.html#RUNTIME-CONFIG-WAL-CHECKPOINTS),
the relation between "checkpoint_timeout" and "checkpoint_warning" is
missing.

According to the code, "checkpoint_timeout" should be set larger than
"checkpoint_warning", otherwise the warnings will not be generated. The
comments in function: CheckpointerMain() also tell such behavior, which is
in line#473 in "src/backend/postmaster/checkpointer.c":

/*
 * We will warn if (a) too soon since last checkpoint (whatever
 * caused it) and (b) somebody set the CHECKPOINT_CAUSE_XLOG flag
 * since the last checkpoint start.  Note in particular that this
 * implementation will not generate warnings caused by
 * CheckPointTimeout < CheckPointWarning.
 */

I think this's should definitely specified in the documentation.

Best,
Tianyin


-- 
Tianyin XU,
http://cseweb.ucsd.edu/~tixu/


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: The relation between "checkpoint_timeout" and "checkpoint_warning" is missing
  In-Reply-To: <CABBDWwfVg275EjUd0daBN7Vd9yaCZewSgbzd3_8ciEXY5XK0tQ@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox