Skip to content

Fix GIN index detection for views#3880

Merged
roji merged 1 commit into
hotfix/10.0.3from
roji-backport-view-indexes
Jul 10, 2026
Merged

Fix GIN index detection for views#3880
roji merged 1 commit into
hotfix/10.0.3from
roji-backport-view-indexes

Conversation

@roji

@roji roji commented Jul 10, 2026

Copy link
Copy Markdown
Member

ToView mappings use view columns rather than table columns, so the index-aware array Contains translation did not find a modeled GIN index and fell back to ANY.

Inspect indexes through the column property's model metadata, which supports both table and view mappings while retaining the existing first-indexed-property and GIN-method requirements. Adds a focused ToView translation regression test.

Fixes #3829

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@roji roji merged commit 5e912bf into hotfix/10.0.3 Jul 10, 2026
8 of 9 checks passed
@roji roji deleted the roji-backport-view-indexes branch July 10, 2026 08:23
@roji roji linked an issue Jul 10, 2026 that may be closed by this pull request
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.

Views with underyling indicies are not used in translation

1 participant