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 1rER3a-005gjl-DI for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Dec 2023 09:34:02 +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 1rER3Y-00AEtr-Oc for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Dec 2023 09:34:00 +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 1rER3Y-00AEtj-Eo for pgsql-hackers@lists.postgresql.org; Sat, 16 Dec 2023 09:34:00 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rER3R-00CH8Y-Se for pgsql-hackers@lists.postgresql.org; Sat, 16 Dec 2023 09:33:59 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id E64B93200A63; Sat, 16 Dec 2023 04:33:50 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Sat, 16 Dec 2023 04:33:51 -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:subject :subject:to:to; s=fm2; t=1702719230; x=1702805630; bh=rtA46X8XP8 qvf/Lw3TAbdxEK0Ruca2Y7UgIsfpuXKts=; b=SkGx4mQ9YQkiUogNGCb05hMVmc t/+9E2q24qamR4TLNn3GBHVZF+lfiMM1bJk6hwc54I3pG11WdhZZmHSQs0VdZunE 0Mtfd8hv5r6oNKrz0xQUywZEKbAxV84dio7UY9P4JDmRj2F+JkvcXDSNH24JPmgG JvbYPZKTV+WZ0wFuZozWZjVTIDrLr1Z78Pv1eS/dqIGZd7+/DA6uqUTON4fpbg1v uk4SclM2loPOJEfXyPhJuuhKJJzGkmlp6WBpj/xHoc4vCxH3y1FyrOHPdvlv6Zae SPJqoQrsECEfrkeOotMbd6GAiR3T7qYE8DD+ELAEQP7tS6uGj7hVs/Tyanrg== 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:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1702719230; x=1702805630; bh=rtA46X8XP8qvf/Lw3TAbdxEK0Ruc a2Y7UgIsfpuXKts=; b=0O4PnBqHzePi8NwHmaiR5P5LHZOImekUoLkxC72T/j4U ppPUUY1ErTLVihIwyVrpDRe62cjVO6iiElWwMIcgTLJK2KlSfWiSQ3yaGZiDz9+i VCfAqYSFw3xW65iNUNRZQgDgJZZ5NF5IoEH6q5pJWpuN/SRmScmJ7MQ6gZikGpDy dGYW8sGed7guuKoS5HktQ2FnbevwExSZ0yPW81ETf640Ho6gndXLNTDt61BxxjW7 3dxyXEL8z4sb9f+4uj+gzsdmz3FBcdrTDHWMRMIK7A6VSJyXdxm6PRzYL06d20ah iqo9AfFIszKEWy9ruI/Ib/pCh/q/uEp/j7hPJmERGg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvddtgedgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 16 Dec 2023 04:33:47 -0500 (EST) Date: Sat, 16 Dec 2023 10:33:45 +0100 From: Michael Paquier To: Peter Eisentraut Cc: Peter Smith , Alvaro Herrera , Nathan Bossart , Laurenz Albe , Tom Lane , Daniel Gustafsson , PostgreSQL Hackers Subject: Re: GUC names in messages Message-ID: References: <00b8d030-15cb-4609-b34a-98519b4c4c3b@eisentraut.org> <9e7802b2-2cf2-4c2d-b680-b2ccb9db1d2f@eisentraut.org> <6d66eb1a-290d-4aaa-972a-0a06a1af02af@eisentraut.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="YzlsFT6RVvAij316" Content-Disposition: inline In-Reply-To: <6d66eb1a-290d-4aaa-972a-0a06a1af02af@eisentraut.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --YzlsFT6RVvAij316 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 14, 2023 at 09:38:40AM +0100, Peter Eisentraut wrote: > After these discussions, I think this rule change was not a good idea. It > effectively enforces these kinds of inconsistencies. For example, if you > ever refactored >=20 > "DateStyle is wrong" >=20 > to >=20 > "%s is wrong" >=20 > you'd need to adjust the quotes, and thus user-visible behavior, for > entirely internal reasons. This is not good. So, what are you suggesting? Should the encouraged rule be removed =66rom the docs? Or do you object to some of the changes done in the latest patch series v5? FWIW, I am a bit meh with v5-0001, because I don't see the benefits. On the contrary v5-0003 is useful, because it reduces a bit the number of strings to translate. That's always good to take. I don't have a problem with v5-0002, either, where we'd begin using the name of the=20 GUC as stored in the static tables rather than the name provided in the SET query, particularly for the reason that it makes the GUC name a bit more consistent even when using double-quotes around the parameter name in the query, where the error messages would not force a lower-case conversion. The patch would, AFAIU, change HEAD from that: =3D# SET "intervalstylE" to popo; ERROR: 22023: invalid value for parameter "intervalstylE": "popo" To that: =3D# SET "intervalstylE" to popo; ERROR: 22023: invalid value for parameter "IntervalStyle": "popo" > And then came the idea to > determine the quoting dynamically, which I think everyone agreed was too > much. So I don't see a way to make this work well. Yeah, with the quotes being language-dependent, any idea I can think of is as good as unreliable and dead. -- Michael --YzlsFT6RVvAij316 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmV9bvkACgkQnvQgOdby QH1jQA/+NyZBXQwoqQIRUj/oqzWEvgUpJPHxpIP4K8g9eRukAa7+vfSDkvlM3R9s CN5gDPYKijQEzCbGvljADhhMno4aKAmom0+GTwDOXhtByXs8seKcLk7a7z24Nol0 tR2K/UsHBZsEyoL82I2Bbr3c8qb1lOvTHGHRtOZhvuoXE/lfxXJuhcS6Qo9dH4Bh 46ysTWqcadm88AptQp5OPVuTr438WoGVOSVykG2OJyjDf4UeqJVJ6rhcg2La3HeC rzLlRKkOqqPIVAQngSaThQrQR/rb7OrxVUfMZ5AKHzw4V+WGjLsDVQWHiClxaG56 jFkSiHiTn+ugJKJaDZE7fDalwEvvjS5Z+8AxWk71fJHVgNoMVZrennNmexoK83EV xZgtDcx5ukEQNbBABwGR9dzx7nxwY2ibRE83PehKlG7tDVQl/PSt6menfKUxcVaH 9cKZDFkpQj066NNW2wo+E04r2hrsunvC3B7Ibw2v3ceL5ctETX5aV1MDzAt5Qob4 sjRRbye/BZoLkk1S94dbnxUaLxWAwsaZ+DH4NX5i1FEAcVue4hEe4UkRGuPNRLDe G//mYgGHgoCmtxhxL+zdKxAJeGhHkX9JgVXb789xBO6ATkz276vmlg9GFpuQdnoJ VYSRkI395fTXURxLMUB3wwsMB15v9iFharvba0aaE7vKC6cxw8s= =ZA/u -----END PGP SIGNATURE----- --YzlsFT6RVvAij316--