Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1CZV-0006Ln-QD for pgsql-docs@arkaria.postgresql.org; Tue, 05 Mar 2019 16:05:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h1CZU-000432-AG for pgsql-docs@arkaria.postgresql.org; Tue, 05 Mar 2019 16:05:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1CZU-00040M-0d for pgsql-docs@lists.postgresql.org; Tue, 05 Mar 2019 16:05:36 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1CZR-0006zo-Bk for pgsql-docs@lists.postgresql.org; Tue, 05 Mar 2019 16:05:34 +0000 Received: from bruce by momjian.us with local (Exim 4.89) (envelope-from ) id 1h1CZP-0003xv-VA; Tue, 05 Mar 2019 11:05:31 -0500 Date: Tue, 5 Mar 2019 11:05:31 -0500 From: Bruce Momjian To: dick.wieland@wiline.com, pgsql-docs@lists.postgresql.org Subject: Re: Error in 9.6 documentation? checkpoint_flush_after Message-ID: <20190305160531.zwoosgpihb7tnonm@momjian.us> References: <155141990108.1380.13791208099765451492@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <155141990108.1380.13791208099765451492@wrigleys.postgresql.org> User-Agent: NeoMutt/20170113 (1.7.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Mar 1, 2019 at 05:58:21AM +0000, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/9.6/runtime-config-wal.html > Description: > > https://www.postgresql.org/docs/9.6/runtime-config-wal.html > 19.5.2 > > checkpoint_flush_after (integer) > > Whenever more than checkpoint_flush_after bytes have been written while > performing a checkpoint, attempt to force the OS to issue these writes to > the ... > > bytes or pages? postgresql.conf says pages You bring up a good point. This problem affects these postgresql.conf variables: bgwriter_flush_after backend_flush_after checkpoint_flush_after and probably more. The issue is that the value is in bytes, as opposed to a value of time, like milliseconds. You can specify the bytes in terms of the number of pages, e.g., 2 = 16kB, or you can specify it directly in bytes, e.g., 32kB. The line in postgresql.conf is saying: #checkpoint_flush_after = 256kB # measured in pages, 0 disables ----------------- if you specify a number like: checkpoint_flush_after = 12 that is 12 * 8kB or 96kB. If you specify an actual byte amount like 256kB, that is the value that is used. Do you have any suggestions on how this could be made clearer? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +