pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Matthias van de Meent <boekewurm+postgres@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Etsuro Fujita <etsuro.fujita@gmail.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Subject: Re: Cleanup: remove unused fields from nodes
Date: Mon, 22 Apr 2024 11:41:10 -0400
Message-ID: <3069708.1713800470@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEze2WjsY4d0TBymLNGK4zpttUcg_YZaTjyWz2VfDUV6YH8wXQ@mail.gmail.com>
References: <CAEze2WjsY4d0TBymLNGK4zpttUcg_YZaTjyWz2VfDUV6YH8wXQ@mail.gmail.com>

Matthias van de Meent <boekewurm+postgres@gmail.com> 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





view thread (11+ messages)  latest in thread

Message-ID: <3069708.1713800470@sss.pgh.pa.us>
Permalink:  ../3069708.1713800470@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3069708.1713800470@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, boekewurm+postgres@gmail.com, etsuro.fujita@gmail.com, amit.kapila16@gmail.com
  Subject: Re: Cleanup: remove unused fields from nodes
  In-Reply-To: <3069708.1713800470@sss.pgh.pa.us>
  References: <CAEze2WjsY4d0TBymLNGK4zpttUcg_YZaTjyWz2VfDUV6YH8wXQ@mail.gmail.com> <3069708.1713800470@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