45.73. pg_views

Note: The following description applies both to Postgres-XC and PostgreSQL if not described explicitly.

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

Table 45-74. 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)