Skip to content

Add amnblocks index AM method - #78

Merged
pashkinelfe merged 1 commit into
patches17from
export_index_nblocks
Jul 27, 2026
Merged

Add amnblocks index AM method#78
pashkinelfe merged 1 commit into
patches17from
export_index_nblocks

Conversation

@pashkinelfe

Copy link
Copy Markdown
Contributor

RelationGetNumberOfBlocksInFork called smgrnblocks, which returned 0 for Orioledb indexes. The planner read relpages from this, so index scan/bitmap index scan or seq scan were preferred to IOS

amnblocks lets the AM override the block count before the smgr fallback.

RelationGetNumberOfBlocksInFork called smgrnblocks, which
returned 0 for Orioledb indexes. The planner read relpages
from this, so index scan/bitmap index scan or seq scan
were preferred to IOS

amnblocks lets the AM override the block count before the
smgr fallback.
@pgnickb pgnickb self-assigned this Jul 27, 2026

@pgnickb pgnickb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pashkinelfe
pashkinelfe merged commit f350cb8 into patches17 Jul 27, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants