Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFo1H-0004RQ-Om for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Jul 2022 02:40:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oFo1G-0006Aw-Jd for pgsql-hackers@arkaria.postgresql.org; Mon, 25 Jul 2022 02:40:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFo1G-0006Ai-Ag for pgsql-hackers@lists.postgresql.org; Mon, 25 Jul 2022 02:40:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFo1D-0005bL-Lu for pgsql-hackers@postgresql.org; Mon, 25 Jul 2022 02:40:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 26P2eGeo1826704; Sun, 24 Jul 2022 22:40:16 -0400 From: Tom Lane To: Fujii Masao cc: Kyotaro Horiguchi , bharath.rupireddyforpostgres@gmail.com, pgsql-hackers@postgresql.org Subject: Re: Remove useless arguments in ReadCheckpointRecord(). In-reply-to: <4c27fe77-c1c9-b1aa-d6cf-b6e840a9f6ce@oss.nttdata.com> References: <97978a70-bbaf-c7b6-9b0f-d8b21ba9f0da@oss.nttdata.com> <20220721.145449.214151305475458058.horikyota.ntt@gmail.com> <26a2ac05-b632-c3c5-3052-309137fd77d3@oss.nttdata.com> <20220722.173152.296817663081387846.horikyota.ntt@gmail.com> <4c27fe77-c1c9-b1aa-d6cf-b6e840a9f6ce@oss.nttdata.com> Comments: In-reply-to Fujii Masao message dated "Mon, 25 Jul 2022 11:30:30 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1826702.1658716816.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 24 Jul 2022 22:40:16 -0400 Message-ID: <1826703.1658716816@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Fujii Masao writes: > On 2022/07/22 17:31, Kyotaro Horiguchi wrote: >> I believed that it is recommended to move to the style not having the >> outmost parens. That style has been introduced by e3a87b4991. > I read the commit log, but I'm not sure yet if it's really recommended t= o remove extra parens even from the existing calls to errmsg(). Removing e= xtra parens can interfere with back-patching of the changes around those e= rrmsg(), can't it? Right, so I wouldn't be in a hurry to change existing calls. If you're editing an ereport call for some other reason, it's fine to remove the excess parens in it, because you're creating a backpatch hazard there anyway. But otherwise, I think such changes are make-work in themselves and risk creating more make-work for somebody else later. regards, tom lane