pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: 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: Wed, 26 Aug 2020 10:26:23 +0900
Message-ID: <abb6f591-8666-a7d1-c754-d4dfdffe859a@oss.nttdata.com> (raw)
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>



On 2020/08/26 2:50, Andreas Karlsson wrote:
> 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.

I agree that some parameters were kept for that reason,
but ISTM that also some were kept just accidentally.
For example, regarding unused parameter "encoding" that 0010 patch
tries to remove, commit f0d6f20278 got rid of the use of "encoding"
from generate_normalized_query() but ISTM that it just forgot to
remove that parameter.

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION





view thread (8+ messages)  latest in thread

Message-ID: <abb6f591-8666-a7d1-c754-d4dfdffe859a@oss.nttdata.com>
Permalink:  ../abb6f591-8666-a7d1-c754-d4dfdffe859a@oss.nttdata.com/
Also on:    postgresql.org/message-id/abb6f591-8666-a7d1-c754-d4dfdffe859a@oss.nttdata.com

 · 

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: masao.fujii@oss.nttdata.com, andreas@proxel.se, bruce@momjian.us, tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com
  Subject: Re: some unused parameters cleanup
  In-Reply-To: <abb6f591-8666-a7d1-c754-d4dfdffe859a@oss.nttdata.com>
  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> <abb6f591-8666-a7d1-c754-d4dfdffe859a@oss.nttdata.com>

* 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