select open change scope Open full search

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

SYSTEM CATALOGS / SYSTEM VIEWS

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

Kind
System views
Columns in this snapshot
7
Definition source
English manual

Columns 7

ColumnTypeDescription / reference
schemanamenameName of schema containing materialized view
pg_namespace.nspname
matviewnamenameName of materialized view
pg_class.relname
matviewownernameName of materialized view's owner
pg_authid.rolname
tablespacenameName of tablespace containing materialized view (null if default for database)
pg_tablespace.spcname
hasindexesboolTrue if materialized view has (or recently had) any indexes
ispopulatedboolTrue if materialized view is currently populated
definitiontextMaterialized view definition (a reconstructed SELECT query)
Column history across versions
Version history 1
  1. PG 9.2 → 9.3added

Definition snapshot: english-manuals:b730c6cc4f1dff683ab29b1cfd3… · English manual source