Re: remove partColsUpdated

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: remove partColsUpdated
Date: 2025-10-16 16:17:41
Message-ID: aPEapYAkDt8Y-QSy@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Oct 15, 2025 at 08:18:41PM -0400, Tom Lane wrote:
> Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> writes:
>> On Oct 15, 2025, at 23:50, Nathan Bossart <nathandbossart(at)gmail(dot)com> wrote:
>>> This was first added in commit 2f17844 (v11), and AFAICT it was only used
>>> for a variable named update_tuple_routing_needed in ExecInitModifyTable(),
>>> which was removed by commit c5b7ba4 (v14). Any objections to removing it
>>> now?
>
>> Looks like this is only one assignment to it and nobody reads it. I
>> don’t see a reason to retain it.
>
> I just had a look through https://codesearch.debian.net/ and couldn't
> find any evidence that any extensions are using it, so +1 to remove.

Thanks, will go commit it now.

>> Maybe back patch through 14?
>
> Certainly not. That would cause an ABI break for any extension that
> touches later fields in PlannerInfo or ModifyTable. We don't expect
> extensions to get recompiled for minor releases.

Even if it wasn't an ABI break, there's very little upside to back-patching
small stuff like this that's not hurting anything. The risk/reward ratio
is not favorable.

--
nathan

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ashutosh Bapat 2025-10-16 16:25:05 Re: Changing shared_buffers without restart
Previous Message Jim Jones 2025-10-16 15:35:41 Re: [PATCH] Add pg_get_trigger_ddl() to retrieve the CREATE TRIGGER statement