| Server IP : 104.21.25.180 / Your IP : 104.23.197.122 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/postgresql-docs/html/ |
Upload File : |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>51.74. pg_matviews</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="[email protected]" /><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /><link rel="prev" href="view-pg-locks.html" title="51.73. pg_locks" /><link rel="next" href="view-pg-policies.html" title="51.75. pg_policies" /></head><body><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">51.74. <code xmlns="http://www.w3.org/1999/xhtml" class="structname">pg_matviews</code></th></tr><tr><td width="10%" align="left"><a accesskey="p" href="view-pg-locks.html" title="51.73. pg_locks">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="catalogs.html" title="Chapter 51. System Catalogs">Up</a></td><th width="60%" align="center">Chapter 51. System Catalogs</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 10.23 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="view-pg-policies.html" title="51.75. pg_policies">Next</a></td></tr></table><hr></hr></div><div class="sect1" id="VIEW-PG-MATVIEWS"><div class="titlepage"><div><div><h2 class="title" style="clear: both">51.74. <code class="structname">pg_matviews</code></h2></div></div></div><a id="id-1.10.4.76.2" class="indexterm"></a><a id="id-1.10.4.76.3" class="indexterm"></a><p> The view <code class="structname">pg_matviews</code> provides access to useful information about each materialized view in the database. </p><div class="table" id="id-1.10.4.76.5"><p class="title"><strong>Table 51.75. <code class="structname">pg_matviews</code> Columns</strong></p><div class="table-contents"><table class="table" summary="pg_matviews Columns" border="1"><colgroup><col /><col /><col /><col /></colgroup><thead><tr><th>Name</th><th>Type</th><th>References</th><th>Description</th></tr></thead><tbody><tr><td><code class="structfield">schemaname</code></td><td><code class="type">name</code></td><td><code class="literal"><a class="link" href="catalog-pg-namespace.html" title="51.32. pg_namespace"><code class="structname">pg_namespace</code></a>.nspname</code></td><td>Name of schema containing materialized view</td></tr><tr><td><code class="structfield">matviewname</code></td><td><code class="type">name</code></td><td><code class="literal"><a class="link" href="catalog-pg-class.html" title="51.11. pg_class"><code class="structname">pg_class</code></a>.relname</code></td><td>Name of materialized view</td></tr><tr><td><code class="structfield">matviewowner</code></td><td><code class="type">name</code></td><td><code class="literal"><a class="link" href="catalog-pg-authid.html" title="51.8. pg_authid"><code class="structname">pg_authid</code></a>.rolname</code></td><td>Name of materialized view's owner</td></tr><tr><td><code class="structfield">tablespace</code></td><td><code class="type">name</code></td><td><code class="literal"><a class="link" href="catalog-pg-tablespace.html" title="51.54. pg_tablespace"><code class="structname">pg_tablespace</code></a>.spcname</code></td><td>Name of tablespace containing materialized view (null if default for database)</td></tr><tr><td><code class="structfield">hasindexes</code></td><td><code class="type">boolean</code></td><td> </td><td>True if materialized view has (or recently had) any indexes</td></tr><tr><td><code class="structfield">ispopulated</code></td><td><code class="type">boolean</code></td><td> </td><td>True if materialized view is currently populated</td></tr><tr><td><code class="structfield">definition</code></td><td><code class="type">text</code></td><td> </td><td>Materialized view definition (a reconstructed <code class="command">SELECT</code> query)</td></tr></tbody></table></div></div><br class="table-break" /></div><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navfooter"><hr></hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="view-pg-locks.html" title="51.73. pg_locks">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="catalogs.html" title="Chapter 51. System Catalogs">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="view-pg-policies.html" title="51.75. pg_policies">Next</a></td></tr><tr><td width="40%" align="left" valign="top">51.73. <code xmlns="http://www.w3.org/1999/xhtml" class="structname">pg_locks</code> </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 10.23 Documentation">Home</a></td><td width="40%" align="right" valign="top"> 51.75. <code xmlns="http://www.w3.org/1999/xhtml" class="structname">pg_policies</code></td></tr></table></div></body></html>