Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbBLj-0002QO-NP for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Feb 2017 19:22:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cbBLj-0004X1-4O for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Feb 2017 19:22:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cbBL3-0003nd-TV for pgsql-bugs@postgresql.org; Tue, 07 Feb 2017 19:22:06 +0000 Received: from mail.aegee.org ([144.76.142.78]) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cbBKz-0001Ep-Tr for pgsql-bugs@postgresql.org; Tue, 07 Feb 2017 19:22:04 +0000 Authentication-Results: aegeeserv.aegee.org; auth=pass (PLAIN) smtp.auth=didopalauzov DKIM-Filter: OpenDKIM Filter v2.10.3 mail.aegee.org v17JMvPI026280 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aegee.org; s=k4096; t=1486495377; i=dkim+MSA-tls@aegee.org; r=y; bh=vNuOin49bPUhQDBIv+8rCMjxiXyN+8nif6/W2oIdnHQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=FznC+oHwoQXkNxEOT/GHafZJ/4trjR+NrWmFsoHX/O5XKMtnsAIK/VkIFEOgYkF/Q erYJBO1W1pL8gwJ02ChBGqz08kxv4sQtFkzUZeRtqiUyZT7RZjtckv5hbZfBZAe2ry KeY7JnAk+jhuOaNKQxwgJ1EQG09BXsX59Agc1G1Ka7i2EbyFJ7Gqhganna75nR3hCr N9R8qokPh6wEkP9EeXBmq3JEsw1iYyRpwnQL2unIKRcqYSJ6g0ziZrbVZtznImVu1n AnLU8Pp5oFDtMrrwMNb40vHBmfmaUsoqQgBKfzrPXtHsuuMprcPNlK16j/TVmUb4mz 5hmkzCj4rJcSXuUV40AZ2D114Aul8/NLE+bfjiLX+9Y3zhgXu7a30RJaZ4V0EeN1ki 5U7fqW60ZQq6K0kOxm6hwItHv7JGNh6SdCCmYxLn4+yAG/8S/pFDYFpmZIQbLHxzI6 SYwcxJv7e4FTNTcRlnRQiZArgTcZurLHiAfTKdr7Iln71Bjh7zn4NZNKnmDxoFS5fg tTBjEqXwbmelx/x2rYu2ymXnATfNzcOFjzbsnlrtS0rwdvgirgooA2qktv2vPOC6T6 q6ZdfxZnnQPBgBnx96dbE/hbRVUStoxQsbYlKMU0LwArCuIiw/BqVlccssFFKE0YAw yVJBvl35v01AhsCWHeRSczYU= Authentication-Results: mail.aegee.org; dkim=none Received: from [10.128.8.92] (port-87-193-154-82.static.qsc.de [87.193.154.82]) (authenticated bits=0) by mail.aegee.org (8.15.2/8.15.2) with ESMTPSA id v17JMvPI026280 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 7 Feb 2017 19:22:57 GMT Subject: Re: backend_flush_after bytes/pages To: Andres Freund Cc: pgsql-bugs@postgresql.org References: <2b9e5c4a-be57-ec45-12c7-2d17e6ebd8b9@aegee.org> <20170207185720.uqep3szyulmej7no@alap3.anarazel.de> From: =?UTF-8?B?0JTQuNC70Y/QvSDQn9Cw0LvQsNGD0LfQvtCy?= Message-ID: <27193232-f993-147f-4c07-8182d64c7611@aegee.org> Date: Tue, 7 Feb 2017 20:21:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 In-Reply-To: <20170207185720.uqep3szyulmej7no@alap3.anarazel.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.99.2 at mail.aegee.org X-Virus-Status: Clean X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hello, does backend_flush_after = 7 mean 7 bytes or seven pages? https://www.postgresql.org/docs/9.6/static/runtime-config-resource.html#GUC-BACKEND-FLUSH-AFTER suggests it means 7 bytes, which is not the reality. The documentation is misleading. Greetings Dilian On 02/07/17 19:57, Andres Freund wrote: > Hi, > > On 2017-02-07 19:40:45 +0100, Дилян Палаузов wrote: >> doc/src/smgl/config.sgml: line 2049 for postgres 9.6 states: "Whenever more than backend_flush_after bytes have been written...", which suggests that the data is interpreted as bytes. However the by initdb generated postgresql.conf file mentions that backend_flush_after is in pages, and pg_settings says the unit is 8kB. > >> Please rephrase doc/src/smgl/config.sgml to state, that the unit for >> backend_flush_after is not bytes, but pages. > > You can configure it in bytes though, so I don't really think that > matters? > > Regards, > > Andres > > -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs