47.77. pg_views

Note: The following description applies both to Postgres-XC and PostgreSQL if not described explicitly. You can read PostgreSQL as Postgres-XC except for version number, which is specific to each product.

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

Table 47-78. pg_views Columns

NameTypeReferencesDescription
schemanamenamepg_namespace.nspnameName of schema containing view
viewnamenamepg_class.relnameName of view
viewownernamepg_authid.rolnameName of view's owner
definitiontext View definition (a reconstructed SELECT query)