pub static MZ_CATALOG_ITEMS: LazyLock<BuiltinMaterializedView>Expand description
Every catalog item that has an Item record: user items, including temporary ones, and
runtime-alterable builtins such as mz_internal.mz_analytics.
This is an intermediate layer, intended to be used by
downstream builtin item relations (e.g. mz_sources). Without it,
they would need to parse DDL statements of all items in the durable catalog
then filter down to their specific object type.
A temporary item has its owning session in ephemeral_owner_session, and its
schema_id is the placeholder u0.
A create_sql that fails to decode errors this relation and every reader. Once SQL-795
is implemented, per-row errors can be raised in readers through mz_unsafe.mz_error_if_null.