Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3kPR-0007I9-DW for pgsql-docs@arkaria.postgresql.org; Fri, 08 Feb 2013 09:38:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U3kPQ-0008P8-Av for pgsql-docs@arkaria.postgresql.org; Fri, 08 Feb 2013 09:38:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3kPO-0008P0-GI for pgsql-docs@postgresql.org; Fri, 08 Feb 2013 09:38:14 +0000 Received: from la-in-x0236.1e100.net ([2a00:1450:4010:c03::236] helo=mail-la0-x236.google.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U3kPL-0003f1-27 for pgsql-docs@postgresql.org; Fri, 08 Feb 2013 09:38:13 +0000 Received: by mail-la0-f54.google.com with SMTP id gw10so3581114lab.13 for ; Fri, 08 Feb 2013 01:38:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type:x-gm-message-state; bh=C/mIPEYB+BE9h2rtqPzbWGX6GWYNTGf1nuPjWXW9sf4=; b=jLfr3k3mWntKbGH5T9kLVFxq8Obim1d+AzN8+wCctPYX4rkVjb+j0h8mDLtnGTpYhu J8v90hUADo3LFSU3yB4EmapepUJsC8/jYrpi0jqMCs6tzIitG/WFOhP1bzkxhHIFwqpW MXq95Lqoy+721oz4VO2IObCBsB1O9HRgYU4hUAsbbphlvSV0MO13pVC6ukdDqHHQqPa5 0yR8fa4nRRjglIfFXTv19PFri5+ekxTd7ryPm38szMWlk/2zRb3gKiTfsSeMmfv9CUBn HCl4gckk2KZQPN5fiKaSqLzdYDUUL8vHueVknHgg/TjEf/aEmLQv/Pohg2J+4sA7UsuK qftw== MIME-Version: 1.0 X-Received: by 10.112.23.98 with SMTP id l2mr1981567lbf.80.1360316289390; Fri, 08 Feb 2013 01:38:09 -0800 (PST) Received: by 10.114.28.6 with HTTP; Fri, 8 Feb 2013 01:38:09 -0800 (PST) Date: Fri, 8 Feb 2013 01:38:09 -0800 X-Google-Sender-Auth: mk4uy4UiqdjfTy6_lWwCat_g6po Message-ID: Subject: The relation between "checkpoint_timeout" and "checkpoint_warning" is missing From: Tianyin Xu To: pgsql-docs@postgresql.org Content-Type: multipart/alternative; boundary=90e6ba308b2e36183204d5335132 X-Gm-Message-State: ALoCoQlmAmYX38SKcghTfTrFtQw4/u9bqBMGwGBPdrTC8PZPsumW9MXoKxd7BrIZ+FE22OuoGPSn X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org --90e6ba308b2e36183204d5335132 Content-Type: text/plain; charset=ISO-8859-1 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/ --90e6ba308b2e36183204d5335132 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi, PG,

In "18.5.2. Checkpoints&qu= ot; (http://www.postgre= sql.org/docs/9.2/static/runtime-config-wal.html#RUNTIME-CONFIG-WAL-CHECKPOI= NTS), the relation between=A0"checkpoint_timeout" and "c= heckpoint_warning" is missing.=A0

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

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

I think this's should definitely specified in the docum= entation.

Best,
Tianyin=A0
--90e6ba308b2e36183204d5335132--