Skip to content

[catalog] convert mz_indexes to BuiltinMaterializedView#36771

Draft
mtabebe wants to merge 1 commit into
MaterializeInc:mainfrom
mtabebe:ma/convert-builtins/mz-indexes
Draft

[catalog] convert mz_indexes to BuiltinMaterializedView#36771
mtabebe wants to merge 1 commit into
MaterializeInc:mainfrom
mtabebe:ma/convert-builtins/mz-indexes

Conversation

@mtabebe
Copy link
Copy Markdown
Contributor

@mtabebe mtabebe commented May 28, 2026

Problem
mz_catalog.mz_indexes is a BuiltinTable whose rows are written by pack_index_update. This requires coordinated writes from a single environmentd process, which conflicts with the multi-envd goal.

Solution
Convert mz_indexes to a BuiltinMaterializedView backed by a query over mz_internal.mz_catalog_raw.

Testing
Updated tests to reflect that mz_indexes is now a MATERIALIZED VIEW

Remove these sections if your commit already has a good description!

@mtabebe mtabebe force-pushed the ma/convert-builtins/mz-indexes branch 3 times, most recently from 8894639 to 00f0a81 Compare May 29, 2026 19:46
Problem
mz_catalog.mz_indexes is a BuiltinTable whose rows are
written by pack_index_update. This requires coordinated writes
from a single environmentd process, which conflicts with
the multi-envd goal.

Solution
Convert mz_indexes to a BuiltinMaterializedView backed
by a query over mz_internal.mz_catalog_raw.

Testing
Updated tests to reflect that mz_indexes is now a MATERIALIZED VIEW
@mtabebe mtabebe force-pushed the ma/convert-builtins/mz-indexes branch from 00f0a81 to 8d4954d Compare May 29, 2026 20:36
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.

1 participant