|
6956 | 6956 | <entry>currently held locks</entry>
|
6957 | 6957 | </row>
|
6958 | 6958 |
|
| 6959 | + <row> |
| 6960 | + <entry><link linkend="view-pg-matviews"><structname>pg_matviews</structname></link></entry> |
| 6961 | + <entry>materialized views</entry> |
| 6962 | + </row> |
| 6963 | + |
6959 | 6964 | <row>
|
6960 | 6965 | <entry><link linkend="view-pg-prepared-statements"><structname>pg_prepared_statements</structname></link></entry>
|
6961 | 6966 | <entry>prepared statements</entry>
|
|
7715 | 7720 |
|
7716 | 7721 | </sect1>
|
7717 | 7722 |
|
| 7723 | + <sect1 id="view-pg-matviews"> |
| 7724 | + <title><structname>pg_matviews</structname></title> |
| 7725 | + |
| 7726 | + <indexterm zone="view-pg-matviews"> |
| 7727 | + <primary>pg_matviews</primary> |
| 7728 | + </indexterm> |
| 7729 | + |
| 7730 | + <indexterm zone="view-pg-matviews"> |
| 7731 | + <primary>materialized views</primary> |
| 7732 | + </indexterm> |
| 7733 | + |
| 7734 | + <para> |
| 7735 | + The view <structname>pg_matviews</structname> provides access to |
| 7736 | + useful information about each materialized view in the database. |
| 7737 | + </para> |
| 7738 | + |
| 7739 | + <table> |
| 7740 | + <title><structname>pg_matviews</> Columns</title> |
| 7741 | + |
| 7742 | + <tgroup cols="4"> |
| 7743 | + <thead> |
| 7744 | + <row> |
| 7745 | + <entry>Name</entry> |
| 7746 | + <entry>Type</entry> |
| 7747 | + <entry>References</entry> |
| 7748 | + <entry>Description</entry> |
| 7749 | + </row> |
| 7750 | + </thead> |
| 7751 | + <tbody> |
| 7752 | + <row> |
| 7753 | + <entry><structfield>schemaname</structfield></entry> |
| 7754 | + <entry><type>name</type></entry> |
| 7755 | + <entry><literal><link linkend="catalog-pg-namespace"><structname>pg_namespace</structname></link>.nspname</literal></entry> |
| 7756 | + <entry>Name of schema containing materialized view</entry> |
| 7757 | + </row> |
| 7758 | + <row> |
| 7759 | + <entry><structfield>matviewname</structfield></entry> |
| 7760 | + <entry><type>name</type></entry> |
| 7761 | + <entry><literal><link linkend="catalog-pg-class"><structname>pg_class</structname></link>.relname</literal></entry> |
| 7762 | + <entry>Name of materialized view</entry> |
| 7763 | + </row> |
| 7764 | + <row> |
| 7765 | + <entry><structfield>matviewowner</structfield></entry> |
| 7766 | + <entry><type>name</type></entry> |
| 7767 | + <entry><literal><link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>.rolname</literal></entry> |
| 7768 | + <entry>Name of materialized view's owner</entry> |
| 7769 | + </row> |
| 7770 | + <row> |
| 7771 | + <entry><structfield>tablespace</structfield></entry> |
| 7772 | + <entry><type>name</type></entry> |
| 7773 | + <entry><literal><link linkend="catalog-pg-tablespace"><structname>pg_tablespace</structname></link>.spcname</literal></entry> |
| 7774 | + <entry>Name of tablespace containing materialized view (null if default for database)</entry> |
| 7775 | + </row> |
| 7776 | + <row> |
| 7777 | + <entry><structfield>hasindexes</structfield></entry> |
| 7778 | + <entry><type>boolean</type></entry> |
| 7779 | + <entry><literal><link linkend="catalog-pg-class"><structname>pg_class</structname></link>.relhasindex</literal></entry> |
| 7780 | + <entry>True if materialized view has (or recently had) any indexes</entry> |
| 7781 | + </row> |
| 7782 | + <row> |
| 7783 | + <entry><structfield>isscannable</structfield></entry> |
| 7784 | + <entry><type>boolean</type></entry> |
| 7785 | + <entry></entry> |
| 7786 | + <entry>True if materialized view can currently be scanned</entry> |
| 7787 | + </row> |
| 7788 | + <row> |
| 7789 | + <entry><structfield>definition</structfield></entry> |
| 7790 | + <entry><type>text</type></entry> |
| 7791 | + <entry></entry> |
| 7792 | + <entry>Materialized view definition (a reconstructed <command>SELECT</command> query)</entry> |
| 7793 | + </row> |
| 7794 | + </tbody> |
| 7795 | + </tgroup> |
| 7796 | + </table> |
| 7797 | + |
| 7798 | + </sect1> |
| 7799 | + |
7718 | 7800 | <sect1 id="view-pg-prepared-statements">
|
7719 | 7801 | <title><structname>pg_prepared_statements</structname></title>
|
7720 | 7802 |
|
|
8092 | 8174 |
|
8093 | 8175 | <para>
|
8094 | 8176 | The <structname>pg_rules</> view excludes the <literal>ON SELECT</> rules
|
8095 |
| - of views; those can be seen in <structname>pg_views</>. |
| 8177 | + of views and materialized views; those can be seen in |
| 8178 | + <structname>pg_views</> and <structname>pg_matviews</>. |
8096 | 8179 | </para>
|
8097 | 8180 |
|
8098 | 8181 | </sect1>
|
|
0 commit comments