pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: bharath.rupireddyforpostgres@gmail.com
Cc: pgsql-hackers@postgresql.org
Subject: Re: Remove useless arguments in ReadCheckpointRecord().
Date: Sun, 24 Jul 2022 22:40:16 -0400
Message-ID: <1826703.1658716816@sss.pgh.pa.us> (raw)
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>

Fujii Masao <masao.fujii@oss.nttdata.com> 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 to remove extra parens even from the existing calls to errmsg(). Removing extra parens can interfere with back-patching of the changes around those errmsg(), 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





view thread (13+ messages)  latest in thread

Message-ID: <1826703.1658716816@sss.pgh.pa.us>
Permalink:  ../1826703.1658716816@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1826703.1658716816@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, masao.fujii@oss.nttdata.com, horikyota.ntt@gmail.com, bharath.rupireddyforpostgres@gmail.com
  Subject: Re: Remove useless arguments in ReadCheckpointRecord().
  In-Reply-To: <1826703.1658716816@sss.pgh.pa.us>
  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> <1826703.1658716816@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox