Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r2wc6-001Uq3-Gf for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Nov 2023 16:50:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r2wc4-009VOz-SZ for pgsql-hackers@arkaria.postgresql.org; Tue, 14 Nov 2023 16:50:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r2wc3-009VON-QY for pgsql-hackers@lists.postgresql.org; Tue, 14 Nov 2023 16:50:08 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r2wc0-005YxJ-R8 for pgsql-hackers@lists.postgresql.org; Tue, 14 Nov 2023 16:50:06 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id DE1E65C0274; Tue, 14 Nov 2023 11:50:03 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 14 Nov 2023 11:50:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1699980603; x= 1700067003; bh=094OvoHhesYbbEG2V0r62G/uRC4su1SyrlYYyTkWi0s=; b=2 PrJGFpe/siX1EWWGMKunTmqSFpzRUhqxpjKRdgdPeQVITwzY6AFoEfbeV6YjK8VK Bvzbre1MQAiN0OBroBgqt0mm/3PYXeq397Q1yHohdfZuNsmgmDrhV4sKu1GKEufd BuBPOdUT0oG7l5cM5/vJdav0HcJvBFZk/sGV1sHcHZQO1eRYRQvuctwrqTJ+qgLN Fn9yvvIJ1GWXe7mD7svujG0teq3Rx01gxvFRU58o5b/6EoxeVuuqx9rZCLOQNIL+ JMtc6ZtrkSbNe7X61vNTeW0Alkvs8wmVsrt7kI8T1zNYrNiBsPJrNoVs/eISdLY4 PobJDeC5muw9BRQ5JU+kw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeffedgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepuddvkefffeeikefgvdehvdevteefkeeiffevgfeutefg teejjedttddtieegvdelnecuffhomhgrihhnpehpohhsthhgrhdrvghspdhsthgrtghkvg igtghhrghnghgvrdgtohhmpdgvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrg hlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 14 Nov 2023 11:50:02 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1699980599; bh=9oLkQg4iK9sdZMSmSgzM32RAPMC30jAnHXOOQLA2FlM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=CBzkjrxMRwf8liSb2ShQVqf/lc2MIyqsHv0hpdnHVk+hXG4OTwVVHiNDmpPExkY/5 ysfamLXHgxvqKyVQinvdBzMd2dlql4YclWpJIHby1P1il4GvUMi2VAtfKQNQ0LBWSs hEqKuZFd4FG/G9UsrYoqesn2SghS6ba9UbIzrbP5UswMqHVxGIkuf7a6MEooGu7I+w +pxCEB7kZMzvQn4/5TsV37oUaUcDZic6/jRb6/3CvwhZTCrRlBgpXts4f2SSTo8vLP pD4VPiMt52BXa9UPrDPE8fXon/xgP39cA3ZrBoy0QcieSYCrhCoYLq+2Wz1f9f5S2U w+VBcn0qR718g== Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id C810FDE; Tue, 14 Nov 2023 17:49:59 +0100 (CET) Date: Tue, 14 Nov 2023 17:49:59 +0100 From: Alvaro Herrera To: Andres Freund Cc: Bruce Momjian , pgsql-hackers@lists.postgresql.org Subject: Re: pgsql: doc: fix wording describing the checkpoint_flush_after GUC Message-ID: <202311141649.sjwd4c5kzzl6@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231114003256.huzptjmwb6c2prrb@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hola-hallo, On 2023-Nov-13, Andres Freund wrote: > On 2023-11-13 12:31:42 +0100, Alvaro Herrera wrote: > > On 2023-Nov-09, Bruce Momjian wrote: > > > > > doc: fix wording describing the checkpoint_flush_after GUC > > > > Hmm. Is this new wording really more clear than the original wording? > > I agree the original may not have been the most simple, but I don't > > think it was wrong English. > > I think it was somewhat wrong (I probably wrote it) or at least awkwardly > formulated. "force the OS that pages .. should be flushed" doesn't make a ton > of sense. Heh, you know what? I was mistaken. There was indeed a grammatical error being fixed. The complaint [1] was that "you" was missing in the sentence, and apparently that's correct [2]. [1] https://postgr.es/m/155208475619.1380.12815553062985622271@wrigleys.postgresql.org [2] https://english.stackexchange.com/a/60285 So the core of the requested change was to turn "allows to force" into "allows you to force". And this means that your new proposal: > It probably should be something like: > On Linux and POSIX platforms > allows to request that the OS flushes pages written by the checkpoint to disk > after a configurable number of bytes. Otherwise, these [...] would still fall afoul of the reported problem, because it still says "allows to request", which is bad English. > OTOH, the new formulation doesn't seem great either. The request(s) that we > make to the OS are not guaranteed to be followed, so the "should be" was > actually a correct part of the sentence. Hmm, I hadn't noticed that nuance. Your text looks OK to me, except that "... after a configurable number of bytes" reads odd after what's already in the sentence. I would rewrite it in a different form, maybe On Linux and POSIX platforms, checkpoint_flush_after specifies the number of bytes written by a checkpoint after which the OS is requested to flush pages to disk. Otherwise, these pages ... Cheers -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Ninguna manada de bestias tiene una voz tan horrible como la humana" (Orual)