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 1rCd5E-00GgeD-Qk for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Dec 2023 10:00:16 +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 1rCd5D-00Czzb-2u for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Dec 2023 10:00:15 +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 1rCd5C-00CzzT-PG for pgsql-hackers@lists.postgresql.org; Mon, 11 Dec 2023 10:00:14 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rCd5A-009r8A-KB for pgsql-hackers@lists.postgresql.org; Mon, 11 Dec 2023 10:00:13 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D8A5B5C012A; Mon, 11 Dec 2023 05:00:11 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 11 Dec 2023 05:00:11 -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=1702288811; x=1702375211; bh=c9 +HXYeQXJSXY6S2L6yg2DBCYD6ug4ayfd0ev/Fulis=; b=IPIyeoRjy8DEJ5zg9h mMWK9G4B3v4Yos/ImTsr5zuLrQda2j9rsYJdEOCpGRVgPrf4QIh8qA4OZ31UUFpw mE4AAQSk+oCovku50TBvXHH9yerxw6baFeskb947zoB7Ov5apObPRFBPGLabI4CE mhayvi3WGxLwGwCKSEMKR4bsxVCeVhG8YTpqpQLMi3fawPURGrjuCpSXLQw/ClOu oxFhoZEKjxGBzfkHagrLreWbYRgi963T8JjRr7VwSMCJB4Hc0pl18xIfOav2es3H Eq2nrwOVKE1lq2FQElTteIot7nG2e6XkGfB6Grx6yxWtRdiC8Y4XOAtl5tygugpe sttA== 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=1702288811; x=1702375211; bh=c9+HXYeQXJSXY 6S2L6yg2DBCYD6ug4ayfd0ev/Fulis=; b=dcZx4GBaj7mdtMMFwQGiJryGzwepF F9NlJ0y+RlRhoQkO4cfnLDURSLsW/6ldSUf8WhieIhpFP+IREF8FhG22fh3C74MM scYoxxf44gRBY3k//Z7pPH2FjZhUwJRf/Uok8jRJcrZ8A5VZRihTxQvis/sCYCBW XfbD3UGQtlpe/JTNC2dZ/ddnia3WNkl94Y8ZIK4nMjfBPNbl0NiaZhF/PmD7CSIB YVjBa4TguLZujskKrOVvNBs1bjAgkbcTTGWBue2mCr9pJNrp3ZY3G8lCPHoeezQd uY2n7qH6JNpq/swuzdIS9M1gauRDstF2PvMZ9E7BTDW12g6NhIBo2vTkw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudelvddgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 11 Dec 2023 05:00:09 -0500 (EST) Date: Mon, 11 Dec 2023 11:00:07 +0100 From: Michael Paquier To: Peter Smith Cc: Alvaro Herrera , Peter Eisentraut , Nathan Bossart , Laurenz Albe , Tom Lane , Daniel Gustafsson , PostgreSQL Hackers Subject: Re: GUC names in messages Message-ID: References: <202312081255.wlsfmhe2sri7@alvherre.pgsql> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="diMNQzzjGuNphLgp" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --diMNQzzjGuNphLgp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Dec 11, 2023 at 10:14:11AM +1100, Peter Smith wrote: > This v5* looks good to me, except it will need some further > modification if PeterE's suggestion [1] to keep quotes for the > MixedCase GUCs is adopted. - errdetail("The database cluster was initialized with CATALOG_VERSION_NO %d," - " but the server was compiled with CATALOG_VERSION_NO %d.", - ControlFile->catalog_version_no, CATALOG_VERSION_NO), + /*- translator: %s is a variable name and %d is its value */ + errdetail("The database cluster was initialized with %s %d," + " but the server was compiled with %s %d.", + "CATALOG_VERSION_NO", Good point. There are a lot of strings that can be shaved from the translations here. src/backend/access/transam/xlog.c: errdetail("The database cluster was initialized with PG_CONTROL_VERSION %d (0x%08x)," src/backend/access/transam/xlog.c: errdetail("The database cluster was initialized with PG_CONTROL_VERSION %d," src/backend/access/transam/xlog.c: errdetail("The database cluster was initialized without USE_FLOAT8_BYVAL" src/backend/access/transam/xlog.c: errdetail("The database cluster was initialized with USE_FLOAT8_BYVAL" I think that you should apply the same conversion for these ones. There is no gain with the 1st and 3rd ones, but the 2nd and 4th one can be grouped together. FWIW, if we don't convert MixedCase GUCs to become mixedcase, I don't think that there is any need to apply quotes to them because they don't really look like natural English words. That's as far as my opinion goes, so feel free to ignore me if the consensus is different. -- Michael --diMNQzzjGuNphLgp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmV23acACgkQnvQgOdby QH39ug/9GaHxWzzZK08y+SYRqZXmq5Yg08/KHhnwzKXNw2N2BXC6XNLyKzW8lOoq cKCLhIyJRD5dY2vXDeFgBtV7ktC4S406IoYTu1xHQy/MosuWGuYE2y8E4P0aLF+t F7W+sj1uqi3hTZRoLMBgkzCSEVmfc+GPSlY63K0ioE0+JNbXk9W2tCyVrtMhtmH0 Tzft6IKMWF9m4vFJt2W2wHMLtMLwQLV5vD8T9SqJ+pdJOIHAd+tD1y/Lt+a+3xDz PzYR9eG2+yXeWGG3mBl8T6yk1Z/Liq5KspxVJVjlbswj1SKI55ibDimCVZ2/jcoU dwdPIW540TSqsgETnW348K/2eLxseYioMDm0Jbgpq91EthdmKY68lfFbQtmFrOm3 O+5k5SmGAi05W4NbDPsCmZmTBcC2BKtXLlDAv2Gxwcf4OkrG93LUaDrfmjrssqTZ CeXc58BhTc7ibC6uSuXl4XopWTbP/WEqtxPVKnQrwAlqaXd/LJW8nWcR9WoGtTCI qgvpJ4K4Kml+ZjrfCjJ+MGp36HG/TRA4hWiP+91rrR8QY1d5jOgVSln3wC2BqUZX Smhr0xhMtgRFRNOB/TBh2ulvLvzwYw93VYmN8Q79cj/bZzsVtKSEm5bo6PsInedn c47QedREeVsmODZACTJuzP0sa+ircivHzAXRDuys4N7mpilben0= =vGXs -----END PGP SIGNATURE----- --diMNQzzjGuNphLgp--