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 1uPbPl-00BOfI-48 for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Jun 2025 06:27:53 +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 1uPbPj-009jJu-3S for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Jun 2025 06:27:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uPbPi-009jJg-8C for pgsql-hackers@lists.postgresql.org; Thu, 12 Jun 2025 06:27:51 +0000 Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uPbPf-001aZT-2j for pgsql-hackers@lists.postgresql.org; Thu, 12 Jun 2025 06:27:50 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 498D21140265; Thu, 12 Jun 2025 02:27:45 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Thu, 12 Jun 2025 02:27:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm3; t=1749709665; x=1749796065; bh=PkOJ1dr1f1JZzoMCqPZWl8+KDU+EVZtN 89L3/S0IKw4=; b=LtC0pu4PJbmp/9VMhebsh/qLJ630j2WuBuOGeVm88PJQjlil p9SFHo4kWslZV9v74QeM/ei0DjOFRO0LVYeISNxZQDifMWg7kuHX8On9D1tSlChg lNS0pGWIXnyeMP3lAgtFznt8o8VqzOp4LcVxegWcB7T7R61FlIlRiWK9lvecjQvR aeWtqU19MtJYadzwzRIhGvrSR5Yrlt6xYjAsP0ox6zJTykOl66yVp/NaT1v009Zi StnxCuNt3gjb1C8XzVFNywX67S3xU2ksq87YBajWrU3BU2WkFm3Tbe+YSNWsxC51 KwBN2MTMryddYWRUevfWjfKwX59b1Tl20QjBmQ== 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 :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1749709665; x= 1749796065; bh=PkOJ1dr1f1JZzoMCqPZWl8+KDU+EVZtN89L3/S0IKw4=; b=G F6y4QFPMdJvuLTlEWTGEZYe1r/iwF7jX9M+1GIhW/rv1I6fjuBndKAKHW887P0qQ uhUmHu+aLHvvbQliOB2ZMZ9fU1/I79Uo7miHo0gwf1dfb1KzG37oUESESpxYy+eW zRa5B7rKuatLM7HnvMBwuikcRWegNpnY+zyxNJlSLrvO4bjoDW73b3sKryA/Wzs1 Lsx4HdsZQr9giwvuMkJggvjZzfkim902BLCxEDHDVYVQMO1W/9FziZadnAPP3mlM HKukT1M3DLoqm55S7x5N4f0R3zafj4I/WX4PMkiH6Q+xUW/6yQ9PebjWYYuRBe7Q zsJS8TYtB8BrTGdQLCZSw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugddugeefgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddv jeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghish gvnhhtrhgruhhtrdhorhhgqeenucggtffrrghtthgvrhhnpefgjedthfekfedtuefgieel heetleejgefhueeltdfhueetvdffudekfeejhfegheenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdr ohhrghdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoh epuggrnhhivghlseihvghsqhhlrdhsvgdprhgtphhtthhopegurghvihgurdhgrdhjohhh nhhsthhonhesghhmrghilhdrtghomhdprhgtphhtthhopehhohhrihhkhihothgrrdhnth htsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhi shhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 12 Jun 2025 02:27:43 -0400 (EDT) Message-ID: <77707603-d355-4a66-b05a-e8625b485a40@eisentraut.org> Date: Thu, 12 Jun 2025 08:27:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Possibly hard-to-read message To: Daniel Gustafsson Cc: "David G. Johnston" , Kyotaro Horiguchi , pgsql-hackers@lists.postgresql.org References: <20250326.120732.1167093737847500721.horikyota.ntt@gmail.com> <2E4127D5-85B9-40B5-8D6F-C44B57E92DDD@yesql.se> <79374B41-4B6C-4AE4-93EE-B719BE9C2B2C@yesql.se> Content-Language: de-DE, en-US From: Peter Eisentraut In-Reply-To: <79374B41-4B6C-4AE4-93EE-B719BE9C2B2C@yesql.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 11.06.25 11:36, Daniel Gustafsson wrote: > > >> On 5 Jun 2025, at 13:14, Peter Eisentraut wrote: >> >> On 07.04.25 02:55, Daniel Gustafsson wrote: >>>> On 7 Apr 2025, at 02:43, David G. Johnston wrote: >>>> How about: >>>> >>>> + " if set to a number, overrides the default two second \\watch interval\n" >>>> >>>> I do like the consistency of "if set" even though most of the others are booleans. >>> Ah yes, number is better. I'll go ahead with that in the morning. >> >> I came across this psql help text and had a hard time processing it, and, without having read this thread, my thought process was that the message should be phrased more like how it was originally. >> >> The problem with the current phrasing is: >> >> - "if set to a number" seems to indicate that something else happens if it's not a number. But it doesn't say what. And it's also not true. And we don't phrase things like that for other numeric settings. >> >> - The way this is phrased now seems to say that the variable is unset by default, and only if it is set does it override the default. But that is not what happens. The variable has a value by default, and that is what gets used. >> >> I suggest something like this: >> >> number seconds \watch waits between executions (in seconds, default %d) >> >> >> While we're here, the documentation could also use some more detail: >> >> >> WATCH_INTERVAL >> >> >> This variable sets the default interval which \watch >> waits between executing the query. Specifying an interval in the >> command overrides this variable. >> >> >> >> >> This mentions neither the units nor the default value. > > How about the attached (reflowing rows in docs not done to keep the diff readable)? HELP0(" WATCH_INTERVAL\n" - " if set to a number, overrides the default two second \\watch interval\n"); + " number of seconds \\watch waits between executions (default %s seconds)\n", + DEFAULT_WATCH_INTERVAL); This wording has the disadvantage that it requires plural-enabling the translation of "seconds". I think you can just leave off the second "seconds" to avoid that. The rest looks good to me.