↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Wiki / System Catalogs

pg_matviews

The view pg_matviews provides access to useful information about each materialized view in the database.

English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.

Reading PG 18·Select a recorded version

kind
view
lang
en
measured attributes
true
metadata release
18.6
runtime columns
schemaname, matviewname, matviewowner, tablespace, hasindexes, ispopulated, definition
runtime verified
false
source
english-manual

Definition PG 18

The view pg_matviews provides access to useful information about each materialized view in the database.

Catalog columns

ColumnTypeNullabilityDescription
schemanamenameNullableName of schema containing materialized view
matviewnamenameNullableName of materialized view
matviewownernameNullableName of materialized view's owner
tablespacenameNullableName of tablespace containing materialized view (null if default for database)
hasindexesboolNullableTrue if materialized view has (or recently had) any indexes
ispopulatedboolNullableTrue if materialized view is currently populated
definitiontextNullableMaterialized view definition (a reconstructed SELECT query)

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · catalog-bilingual-repair:feec4a3724eef2f28a402a9d2918f61b8b9c23c495ffce0cac1f1673d96c3808

Text language: en · catalog-bilingual-repair:feec4a3724eef2f28a402a9d2918f61b8b9c23c495ffce0cac1f1673d96c3808