Skip to content

fix: rebuild custom scan heap state on rescan#4461

Merged
philippemnoel merged 1 commit into0.22.xfrom
backport-4446-to-0.22.x
Mar 23, 2026
Merged

fix: rebuild custom scan heap state on rescan#4461
philippemnoel merged 1 commit into0.22.xfrom
backport-4446-to-0.22.x

Conversation

@paradedb-bot
Copy link
Copy Markdown
Contributor

Description

Backport of #4446 to 0.22.x.

## Summary
- add a pg_test that reuses a stale ctid after the heap relation
shrinks, reproducing the stale read surfaced by Antithesis
- rebuild the basescan visibility checker and heap fetch state on rescan
so cached relation sizes stay in sync with the heap

## Testing
- cargo test -p pg_search
basescan_reset_refreshes_visibility_checker_after_heap_shrink --
--nocapture
- cargo check --workspace

---------

Signed-off-by: Philippe Noël <[email protected]>
(cherry picked from commit 0234165)
@paradedb-bot paradedb-bot requested a review from a team as a code owner March 23, 2026 22:38
@paradedb-bot paradedb-bot added the automated-cherry-pick This PR is the result of our automated cherry-pick machinery. label Mar 23, 2026
@paradedb-bot paradedb-bot requested review from rebasedming and removed request for a team March 23, 2026 22:38
@philippemnoel philippemnoel merged commit 1d31b62 into 0.22.x Mar 23, 2026
20 checks passed
@philippemnoel philippemnoel deleted the backport-4446-to-0.22.x branch March 23, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated-cherry-pick This PR is the result of our automated cherry-pick machinery.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants