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 1kAd67-0007cp-3o for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Aug 2020 17:51:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kAd66-0001wZ-1S for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Aug 2020 17:51:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAd65-0001wS-RC for pgsql-hackers@lists.postgresql.org; Tue, 25 Aug 2020 17:51:01 +0000 Received: from kilimanjaro.scorpionshops.com ([82.118.24.186]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kAd62-0006zh-W9 for pgsql-hackers@postgresql.org; Tue, 25 Aug 2020 17:51:00 +0000 Received: from [192.168.1.31] (c-9f12e155.143-1-64736c10.bbcust.telenor.se [85.225.18.159]) by kilimanjaro.scorpionshops.com (Postfix) with ESMTPSA id 8A1E57BC810; Tue, 25 Aug 2020 19:50:56 +0200 (CEST) Subject: Re: some unused parameters cleanup To: Bruce Momjian , Tom Lane Cc: Peter Eisentraut , pgsql-hackers References: <511bb100-f829-ba21-2f10-9f952ec06ead@2ndquadrant.com> <2747707.1598374771@sss.pgh.pa.us> <20200825174229.GB20679@momjian.us> From: Andreas Karlsson Message-ID: <9612131a-b666-ce3b-e0ac-74f304cf3228@proxel.se> Date: Tue, 25 Aug 2020 19:50:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200825174229.GB20679@momjian.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 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