-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check for invalid down link while prefetching B-Tree leave pages for index-only scan #9867
Conversation
7095 tests run: 6798 passed, 0 failed, 297 skipped (full report)Code coverage* (full report)
* collected from Rust tests only The comment gets automatically updated with the latest test results
af979af at 2024-12-13T20:37:05.642Z :recycle: |
Please add a test case for this |
I don't think I understand how a downlink can contain InvalidBlockNumber, could you refer me to code which generates that? |
I think you have a mistaken understanding of the issue. In the issue you've linked the calculated value for I think you'll have to fix the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a different approach to fixing the issue, as this seems to just paper over it.
See #9867 (comment)
I think you are right. It seems to me that I have saw checks for So I restored original code and added extra checks (including check that |
b9c7077
to
e07ddc4
Compare
e07ddc4
to
0fd8c03
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Problem
See #9866
Index-only scan prefetch implementation doesn't take in account that down link may be invalid
Summary of changes
Check that downlink is valid block number
Correspondent Postgres PRs:
neondatabase/postgres#534
neondatabase/postgres#535
neondatabase/postgres#536
neondatabase/postgres#537