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.96) (envelope-from ) id 1vpvqx-001RaG-0h for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Feb 2026 22:05:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vpvpx-00164q-0n for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Feb 2026 22:04:02 +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.96) (envelope-from ) id 1vpvpw-00164P-0c for pgsql-hackers@lists.postgresql.org; Tue, 10 Feb 2026 22:04:01 +0000 Received: from fout-b2-smtp.messagingengine.com ([202.12.124.145]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vpvpu-0000000034J-1Aqb for pgsql-hackers@lists.postgresql.org; Tue, 10 Feb 2026 22:04:00 +0000 Received: from phl-compute-01.internal (phl-compute-01.internal [10.202.2.41]) by mailfout.stl.internal (Postfix) with ESMTP id 5F1F61D000F0; Tue, 10 Feb 2026 17:03:54 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-01.internal (MEProxy); Tue, 10 Feb 2026 17:03:54 -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=fm3; t=1770761033; x=1770847433; bh=0Z656NMYO7 10yao6EtfuGYqpzlqsj4tWayqBepJURtE=; b=t1dg4TO8LbwE5fj+P2aYXyyKSu pV2dHSm6AgYuWcC5uTCRvpGcVLskS01Fwd4+DOH4BFMAMtg4HNnFSX9Q9v4he5h7 IhD2fD5As5MPk9GPzKPrLvD8JaVpmXBT7jzmc9Od6CHT2HFCicf2UA1xR4aYncUV ux1/U/4HdvJp7IVFzs9T/OChsZO83iIDiU0jT/TBsMO5qxQW0zUdGXTs5Exc83X1 GcOeFGEvzH3NKYpZKDA6SE4nHFLX7Hfj59PyyQsRosIxMst1APTW2rD2Wr/VfDbt jV5RWElmKWe4ZoTpwzX5Hz6ba7cRQWmMEouffrmYwJGrB8r4f2oV7YJcXptw== 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-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1770761033; x=1770847433; bh=0Z656NMYO710yao6EtfuGYqpzlqsj4tWayq BepJURtE=; b=WTTt8gWkF+6GKxe1lGVOs2YsHqAKNT7IEWI52tS86kyqeeHfY3k VkY8vPXTLyEP8CMwhuAlNBPI2oW1VDmvY/MU1uG0vmTo6t/9AHdCKc8exKKNRTRb 2FDeGT60U2zqeJ8muUkeL7QnVx3e0bxj9IZ/r1c9Y/48k0GGw+Qbl3O2db8/Dphf iAJsHAm9HrahQalKx3rp6NNn5+Maw1YkOw24xd9JZYqjfKmqION9y49ZO+Kq4GcS C5cPGh/yBZW/np+9iU4Ydso0bgHon5qvzuoWS+rbQGOTStegAZv9YVcL31oDK0YO zJko8C67d8SxIEaq1ne64owZDp36VvoH2YQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvtddtkeefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvve fukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhi vghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnh epteelieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdejnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrg gvlhesphgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohepgedpmhhouggvpehsmhht phhouhhtpdhrtghpthhtohepthhglhesshhsshdrphhghhdrphgrrdhushdprhgtphhtth hopegrlhhvhhgvrhhrvgeskhhurhhilhgvmhhurdguvgdprhgtphhtthhopehhohhrihhk hihothgrrdhnthhtsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtg hkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 10 Feb 2026 17:03:51 -0500 (EST) Date: Wed, 11 Feb 2026 07:03:47 +0900 From: Michael Paquier To: Tom Lane Cc: =?iso-8859-1?Q?=C1lvaro?= Herrera , Kyotaro Horiguchi , pgsql-hackers@lists.postgresql.org Subject: Re: Miscellaneous message fixes Message-ID: References: <202602101023.p75nm75pl7jh@alvherre.pgsql> <3706800.1770735323@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Cx9g+xlLzzbB2zml" Content-Disposition: inline In-Reply-To: <3706800.1770735323@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --Cx9g+xlLzzbB2zml Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 10, 2026 at 09:55:23AM -0500, Tom Lane wrote: > Yeah, this code is simply wrong. You should remove the > quote_identifier() calls and otherwise leave it as-is. >=20 > quote_identifier(), quote_qualified_identifier(), etc are meant for > building valid SQL strings. However, an error message is a totally > different animal. We decided years ago that the preferred style is > to wrap "..." around the unadorned identifier *in the error text*, > not by using quote_identifier(), so that translators could replace > the double-quote marks with appropriate marks for their language. > Is the English version 100% consistent in the presence of identifiers > containing double-quote marks? No. But we'd be making matters > worse not better for other languages if we did it differently. Right, I had a brain fart on this one. Using "%s"."%s" where the namespace and object names were independently quoted is also not project style. At the end, I have removed the quote_identifier() calls altogether, and reduced the number of quotes in the error strings, leading to f33c58577422 as a result. If there is anything else, please let me know.=20 -- Michael --Cx9g+xlLzzbB2zml Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmmLq0MACgkQnvQgOdby QH057Q//dfKfAFr81R04BOL7zgLd5MJgA/4pfa6iPm7Td3QwBYHSt608wMYDsgOy Uv52UB6fdXYWAUxzhoCe+2+tyGKbvx9ze5RS+8REJRY72ww3SNkRhvzDtH5shtBz yTmDEmPFMzDqm2uHrhn4nWPw+J9Qi/Gp8eii2oyBtMeEmNzl8XkIcXkgfQOKVTsE hFRAsEH4jfOtT1uTlUqlGBffuOcPdV0tQ64ZWPUPejUaQUV5mB2XVIFuHtisGgxc DUT++Fm0KNULmOOM1ja/tpelaDRFWWYFmYM1gEaC+vNK+38F4OegE/6x/bGxZTom SAGSoguN5wkRdvCr/G1+nejtIgAjbRZ+paAp99CrZqqD2BlllyrSWuB3I6BTCep1 8yrfTJ/0Nex7uV43JXUYyT1n+Bc7+YzP73hmmGOT7K7PrrLH6X3VRhgUF1J28Mgb CaEvK/wdem0HLhHOWlIP77yYis9f6WII+LRegDjbsalwNnCFhYYXuZrXWg8+VaBh TD4HnxlWCgTe93mT71ec+QrVBT8YC9tMq0cewIpDVCsgnwSfdldEO60CGq48hTxv y5k10hxtOV3dYE0ntt8xFSMH0Z7yDpQOGsSLf+3yGdoq6BVmN2hzWaizN8xyqiC8 xmB0sOZ7RWVseLCjdFylN7u9Ai8Iai6h1DYVHqSIgX48H5qoRq4= =9fW5 -----END PGP SIGNATURE----- --Cx9g+xlLzzbB2zml--