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 1r7kUJ-006cdg-97 for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Nov 2023 22:53:59 +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 1r7kUG-00HQUy-K7 for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Nov 2023 22:53:56 +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 1r7kUG-00HQUq-AE for pgsql-hackers@lists.postgresql.org; Mon, 27 Nov 2023 22:53:56 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r7kUD-007fpQ-P5 for pgsql-hackers@lists.postgresql.org; Mon, 27 Nov 2023 22:53:55 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id A9C833200AF7; Mon, 27 Nov 2023 17:53:51 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 27 Nov 2023 17:53:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1701125631; x=1701212031; bh=F7 lKmOQBaVNJBMYkM2iReGXAJXe6LZcz9t6E541aHc0=; b=FEdCBZg/fi5URJR2hq QzXOJbWdPjPw38rwGy/nRzodDvQ4kZvdJAEEaPLdIQRgdKfnuHQ0y1qHziLiSzWX xRU3C+IFDDTkMM2qTpORPztPpSS3S4PwykClSw82XQgNYIvQWHrQWjGGCjD+LPEf /cobLB+mAyNHbpGakjAUhbEpZaZJ7CDbOjw1xmI9DZT/yKdrv9uVpTu16FeqfBUs n7Mt+fxTADoahTKTcafctRL9N43AUNDDxaxz9Wsii9a6s+x1q9IsVemu/bhK4lgb p3JAoCDX9iu4ppgtYveFpKErcfyGF7GulliopVQx75/7uZr01H+JwMgJX7r5qkFy 3Vyg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1701125631; x=1701212031; bh=F7lKmOQBaVNJB MYkM2iReGXAJXe6LZcz9t6E541aHc0=; b=qchauOMf/tLnSxxjPaIj1YO7NAUXV D4Kta9gHVSM/Q7BghfmdHo44Sub9HLZJ2kqRkMW2Bmp7qhq9moxCurPiPf0f2cip GPqEd0aziylBec6HyMNCkpEyMntP68CYnTaIuLMUJNQxT8EszVeKW2ctocznQ3r2 fRdkZrIrXM+dpzd4etwZUeH22DgfJCj5bweNzuczW/AvOFHgGNZ3INexL9jrjQDt FUt2Cm23UoulSvpb38XOn6ly44ObVv9gmEUsRLj1WTjyUZcGfsNjjRJLpvTvSpJq MrPv4Fs8Iysjqzp6huCZS/izzvjD0OKU9xgvMm8vAhyqgH6YrBVOFb8PQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeivddgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 27 Nov 2023 17:53:47 -0500 (EST) Date: Tue, 28 Nov 2023 07:53:37 +0900 From: Michael Paquier To: Tom Lane Cc: Laurenz Albe , Peter Smith , Alvaro Herrera , Nathan Bossart , Peter Eisentraut , Daniel Gustafsson , PostgreSQL Hackers Subject: Re: GUC names in messages Message-ID: References: <202311240953.6linnh7oxsdn@alvherre.pgsql> <3772065.1701066944@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4Y4bYeRVx4mHX0BZ" Content-Disposition: inline In-Reply-To: <3772065.1701066944@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --4Y4bYeRVx4mHX0BZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 27, 2023 at 01:35:44AM -0500, Tom Lane wrote: > Laurenz Albe writes: > > On Mon, 2023-11-27 at 13:41 +1100, Peter Smith wrote: >>> In the documentation and in the guc_tables.c they are all described in >>> MixedCase (e.g. "DateStyle" instead of "datestyle"), so I felt the >>> messages should use the same case the documentation, which is why I >>> changed all the ones you are referring to. >=20 >> I agree with that decision; we should use mixed case for these parameter= s. >> Otherwise we might get complaints that the following query does not retu= rn >> any results: >> SELECT * FROM pg_settings WHERE name =3D 'timezone'; (I'm sure that you mean the opposite. This query does not return any results on HEAD, but it would with "TimeZone".) > Yeah. Like Michael upthread, I've wondered occasionally about changing > these names to all-lower-case. It'd surely be nicer if we'd done it > like that to begin with. But I can't convince myself that the ensuing > user pain would be justified. Perhaps not. I'd like to think that a lot of queries on pg_settings have the wisdom to apply a lower() or upper(), but that's very unlikely. - errhint("Perhaps you need a different \"datestyle\" setting."))); + errhint("Perhaps you need a different DateStyle setting."))); Saying that, I'd let this one be in 0002. It causes a log of diff churn in the tests and quoting it based on Alvaro's suggestion would still be correct because it's fully lower-case. (Yeah, I'm perhaps nit-ing here, so feel free to counter-argue if you prefer what the patch does.) -- Michael --4Y4bYeRVx4mHX0BZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmVlHfEACgkQnvQgOdby QH2rnA//f+2dEsz4EadPP49+Sk/PBn6DT2C+1twD3qOMRPu7Kn5c0kpPg15vg+GG eLF+06gPNSO4AGMMxdaiqnjqsnbLYsRSDZ+POX1H0K532/q5j6Rd0IZcD5fXMEv6 193DkR0wgSdTg9BFgcE4NEJ+sv3A4rEA3y0LkEw+szuHX2l2idSOtXbxEmqMSoWa uStp3KBP9Y09QyfADjpLIf347n2cY8Az/YNQOWOsfVySoCBt7/OFr1qZJ+tgH9XP mimHAVMmfbdj8AMfCnoFe0kd3nfncEwWfH820Gg9eaJqBf+Su2KI+d6H1nUMk2uk DYET2sedyFyYkcVsMNOFw/UDBeErpNLJCyj30MRu8wQupHBwMyykUGS7ZKTm1xtx IwfweYfhGVL1yQT1r8dUF+tReKRLyW+apnW1QJFEF62IbVNRUEbgE2YEk12f+Yci OPaMCtGu3dNtrTwfTWtgrvBBOtT0d6D7LO7rDyId0+s0j98vYFWYJZzXnIL7FoIl 01J4ahGIcRYMD4lL5AeMSjUMoyrPE+B24d/d0CIStLL1xitEFlWSAvAVOo6Nt2Vt kvcwWyqCBwt3h1I4263oi0PVqj/SwOVKgFLLyqqQfzK7JU7KEz5hZN8QCec/+AxK RyR37OVyrT4eXWsjmDbXNtM9kVthWVextSXgjjnhwMt59L9e1aM= =345d -----END PGP SIGNATURE----- --4Y4bYeRVx4mHX0BZ--