Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ryvnA-0018p2-NS for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Apr 2024 15:41:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ryvn9-006lL4-1D for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Apr 2024 15:41:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ryvn8-006lKv-Nm for pgsql-hackers@lists.postgresql.org; Mon, 22 Apr 2024 15:41:14 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ryvn6-0046Ee-E3 for pgsql-hackers@lists.postgresql.org; Mon, 22 Apr 2024 15:41:13 +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 43MFfALZ3069709; Mon, 22 Apr 2024 11:41:10 -0400 From: Tom Lane To: Matthias van de Meent cc: PostgreSQL Hackers , Etsuro Fujita , Amit Kapila Subject: Re: Cleanup: remove unused fields from nodes In-reply-to: References: Comments: In-reply-to Matthias van de Meent message dated "Mon, 22 Apr 2024 17:21:22 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3069707.1713800470.1@sss.pgh.pa.us> Date: Mon, 22 Apr 2024 11:41:10 -0400 Message-ID: <3069708.1713800470@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Matthias van de Meent writes: > 0001 removes two old fields that are not in use anywhere anymore, but > at some point these were used. +1. They're not being initialized, so they're useless and confusing. > 0002/0004 remove fields in ExecRowMark which were added for FDWs to > use, but there are no FDWs which use this: I could only find two FDWs > who implement RefetchForeignRow, one being BlackHoleFDW, and the other > a no-op implementation in kafka_fdw [0]. We also don't seem to have > any testing on this feature. I'm kind of down on removing either of these. ermExtra is explicitly intended for extensions to use, and just because we haven't found any users doesn't mean there aren't any, or might not be next week. Similarly, ermActive seems like it's at least potentially useful: is there another way for onlookers to discover that state? > 0003 drops the input_finfo field on the new JsonExprState struct. It > wasn't read anywhere, so keeping it around makes little sense IMO. +1. The adjacent input_fcinfo field has this info if anyone needs it. > 0005 drops field DeallocateStmt.isall: the value of the field is > implied by !name, and that field was used as such. Seems reasonable. I think it would be a good idea to push 0003 for v17, just so nobody grows an unnecessary dependency on that field. 0001 and 0005 could be left for v18, but on the other hand they're so trivial that it could also be sensible to just push them to get them out of the way. regards, tom lane