↑↓ select↵ open⌫ change scopeOpen full search

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

Supported versions: Current (18) / 17 / 16 / 15 / 14
Development versions: 19 / 20devel
Unsupported versions: 13 / 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3
Historical version. PostgreSQL 11 has reached end of support. 2023-11-09. See the current manual.

52.74. pg_matviews

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

Table 52.75. pg_matviews Columns

NameTypeReferencesDescription
schemanamenamepg_namespace.nspnameName of schema containing materialized view
matviewnamenamepg_class.relnameName of materialized view
matviewownernamepg_authid.rolnameName of materialized view's owner
tablespacenamepg_tablespace.spcnameName of tablespace containing materialized view (null if default for database)
hasindexesboolean True if materialized view has (or recently had) any indexes
ispopulatedboolean True if materialized view is currently populated
definitiontext Materialized view definition (a reconstructed SELECT query)

Report a documentation issue

Read the upstream documentation. For corrections, first check the current manual.