From: Andreas Karlsson <andreas@proxel.se>
To: Bruce Momjian <bruce@momjian.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: some unused parameters cleanup
Date: Tue, 25 Aug 2020 19:50:55 +0200
Message-ID: <9612131a-b666-ce3b-e0ac-74f304cf3228@proxel.se> (raw)
In-Reply-To: <20200825174229.GB20679@momjian.us>
References: <511bb100-f829-ba21-2f10-9f952ec06ead@2ndquadrant.com>
<2747707.1598374771@sss.pgh.pa.us>
<20200825174229.GB20679@momjian.us>
On 8/25/20 7:42 PM, Bruce Momjian wrote:
> On Tue, Aug 25, 2020 at 12:59:31PM -0400, Tom Lane wrote:
>> Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
>>> Here is a series of patches to remove some unused function parameters.
>>> In each case, the need for them was removed by some other code changes
>>> over time but the unusedness was not noticed. I have included a
>>> reference to when they became unused in each case.
>>
>> For some of these, there's an argument for keeping the unused parameter
>> for consistency with sibling functions that do use it. Not sure how
>> important that is, though.
>
> I think if they are kept for that reason, we should document that so we
> know not to revisit this issue for them.
+1
That way we can avoid new people discovering the same unused parameters
and then submitting patches for them.
Andreas
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: andreas@proxel.se, bruce@momjian.us, tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com
Subject: Re: some unused parameters cleanup
In-Reply-To: <9612131a-b666-ce3b-e0ac-74f304cf3228@proxel.se>
References: <511bb100-f829-ba21-2f10-9f952ec06ead@2ndquadrant.com> <2747707.1598374771@sss.pgh.pa.us> <20200825174229.GB20679@momjian.us> <9612131a-b666-ce3b-e0ac-74f304cf3228@proxel.se>
* 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