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 1uN8Yi-00Cewm-LD for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Jun 2025 11:14:56 +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 1uN8Yg-007hiV-HL for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Jun 2025 11:14:55 +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 1uN8Yg-007hiM-7s for pgsql-hackers@lists.postgresql.org; Thu, 05 Jun 2025 11:14:54 +0000 Received: from fout-b7-smtp.messagingengine.com ([202.12.124.150]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uN8Yf-000Lkf-0T for pgsql-hackers@lists.postgresql.org; Thu, 05 Jun 2025 11:14:54 +0000 Received: from phl-compute-01.internal (phl-compute-01.phl.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 46D8F1140139; Thu, 5 Jun 2025 07:14:51 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Thu, 05 Jun 2025 07:14:51 -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=1749122091; x=1749208491; bh=seIFOoPZlS7w0Jiijxodipt0EaX31vew 47QLKnQG5Zs=; b=U8gcQKUX0VgPRk/U5YaFhE/D1qLrR47dZv3qvdD9tuPHcWaM 1VP1wRDqeTlzY9eQrgAIrt0D6PRXOWjhW2qCNk424LJ7T3LQf9XqSXRHMNL/Lp5V /y4gL9Rpzkn4MHGSvKHiUOpAPAtUgTouUg/GMNamrtDBZIup7oP/rubOlaKAxmkE RUbm9nIkro7wCfXenvBnoIUfFgP6319A0pUmz80WvyijXxe/c/++7/FvMsD3vmRQ 9BQfipgfz8SMTq+0MzR4kv9P8cD6biF66teXgAv6XtqGJh77hTJoSjDFoKEM3exO M75DSWUWZiWWNGqBeG8wpNW29wyCEO8Q28Jikg== 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=1749122091; x= 1749208491; bh=seIFOoPZlS7w0Jiijxodipt0EaX31vew47QLKnQG5Zs=; b=l eTFgWA2x8dL14LrpfJuj6INppohLIpsgmCZP9eELkPV9VVvww/Sx3gZlLod9Q4Z6 02pABdjuWKxckNJsaMhL/xmfmtXBx+SEtyibVVVm0iYM0xKxQv8CuSxEBLa3h7fV sTfrBYNZGcIgwXapaw3oWEzbbQkBwPngq8elS0wcrGx6hGGYgCztlbaOg3tEvLVf h64UWADmuMzixfP/fB6CS9L+uAS3DHclr3GyjBapk+y9oCz0OPZ29ZmjBsAGSpBo s9SjIKlMXN21GRDgGP9w5iDgiE4KkUxhN1nlcXRSnuM/SdIk2hqQaszaYMma6HY9 3ojj79HVetswdsGteX4YA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdefheehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdej necuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghrsegvihhsvg hnthhrrghuthdrohhrgheqnecuggftrfgrthhtvghrnhepgfejtdfhkeeftdeugfeileeh teeljeeghfeuledthfeutedvffdukeefjefhgeehnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhesvghishgvnhhtrhgruhhtrdho rhhgpdhnsggprhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhope gurghnihgvlheshigvshhqlhdrshgvpdhrtghpthhtohepuggrvhhiugdrghdrjhhohhhn shhtohhnsehgmhgrihhlrdgtohhmpdhrtghpthhtohephhhorhhikhihohhtrgdrnhhtth esghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhs thhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 5 Jun 2025 07:14:49 -0400 (EDT) Message-ID: Date: Thu, 5 Jun 2025 13:14:48 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Possibly hard-to-read message To: Daniel Gustafsson , "David G. Johnston" Cc: Kyotaro Horiguchi , pgsql-hackers@lists.postgresql.org References: <20250326.120732.1167093737847500721.horikyota.ntt@gmail.com> <2E4127D5-85B9-40B5-8D6F-C44B57E92DDD@yesql.se> Content-Language: de-DE, en-US From: Peter Eisentraut In-Reply-To: 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 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.