Skip to content

catalog: Fix pg_index.indnatts and pg_class.relnatts for index rows#36314

Merged
def- merged 1 commit into
MaterializeInc:mainfrom
def-:pr-fix-alias
May 1, 2026
Merged

catalog: Fix pg_index.indnatts and pg_class.relnatts for index rows#36314
def- merged 1 commit into
MaterializeInc:mainfrom
def-:pr-fix-alias

Conversation

@def-

@def- def- commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

indnatts was counting columns of the indexed table instead of the index itself. relnatts was always 0 for index rows because mz_columns has no entries keyed by index IDs. Follow-up to #33204

indnatts was counting columns of the indexed table instead of the index
itself. relnatts was always 0 for index rows because mz_columns has no
entries keyed by index IDs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@def- def- requested a review from SangJunBak April 29, 2026 03:57
@def- def- marked this pull request as ready for review April 29, 2026 04:20
@def- def- requested a review from a team as a code owner April 29, 2026 04:20
@def-

def- commented Apr 30, 2026

Copy link
Copy Markdown
Contributor Author

Ready for review

@SangJunBak SangJunBak 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.

Thanks for the change!

@def- def- merged commit 943e082 into MaterializeInc:main May 1, 2026
124 checks passed
@def- def- deleted the pr-fix-alias branch May 1, 2026 00:46
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