Skip to content

Conversation

@yuzefovich
Copy link
Member

@yuzefovich yuzefovich commented Nov 26, 2025

This commit records the vector index reads for crdb_internal.index_usage_stats. It also removes some duplicated code in favor of using the shared helper.

It also fixes the omission of vector index usage for purposes of IndexesUsed which we include into statement statistics. Also the omission of the index for PlaceholderScan.

Fixes: #158410.

Release note: None

@yuzefovich yuzefovich added the backport-25.4.x Flags PRs that need to be backported to 25.4 label Nov 26, 2025
@yuzefovich yuzefovich requested a review from a team as a code owner November 26, 2025 23:13
@blathers-crl
Copy link

blathers-crl bot commented Nov 26, 2025

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

This commit records the vector index reads for
`crdb_internal.index_usage_stats`. It also removes some duplicated code
in favor of using the shared helper.

It also fixes the omission of vector index usage for purposes of
IndexesUsed which we include into statement statistics. Also the
omission of the index for PlaceholderScan.

Release note: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-25.4.x Flags PRs that need to be backported to 25.4

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sql/vecindex: index usage isn't reflected in observability

2 participants