Re: Fix missing EvalPlanQual recheck for TID scans - Mailing list pgsql-hackers

From David Rowley
Subject Re: Fix missing EvalPlanQual recheck for TID scans
Date
Msg-id CAApHDvo9Ri7unri9c4U47RphTfkxdL70DT725wWjbj+m6zyA-w@mail.gmail.com
Whole thread Raw
In response to Re: Fix missing EvalPlanQual recheck for TID scans  ("Sophie Alpert" <pg@sophiebits.com>)
List pgsql-hackers
On Tue, 16 Sept 2025 at 05:42, Sophie Alpert <pg@sophiebits.com> wrote:
> Thanks, this seems sensible given the reality that rescan happens once per tuple. The `if (node->tss_TidList ==
NULL)`check you kept from me seems likewise pointless in v3-0001 but not particularly intrusive (though of course you
useit in v3-0002).
 

That was a defensive coding choice. It could have been an
Assert(node->tss_TidList == NULL);, but I just prefer it as an "if".

> Otherwise v3-0001 lgtm. (I also took a look at v3-0002 and don't see any immediate issues, though neither would I
reallyconsider myself qualified to review it.)
 

Thanks for looking, and for the report and patches.  I've pushed and
backpatched the fixes.  v13 doesn't have TID Range Scans, so I opted
to break the fix into 2 parts and apply to the relevant branches to
try and keep the commit messages as accurate as possible.

David



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: New string-truncation warnings from GCC 15
Next
From: Michael Paquier
Date:
Subject: Re: [PATCH] Add tests for Bitmapset