Updated on 2025-07-22 GMT+08:00

PG_VIEWS

PG_VIEWS displays useful information about each view in the database.

Table 1 PG_VIEWS columns

Name

Type

Reference

Description

schemaname

name

nspname in PG_NAMESPACE

Schema name of a view.

viewname

name

relname in PG_CLASS

View name

viewowner

name

Erolname in PG_AUTHID

Owner of the view

definition

text

-

Definition of the view