44.54. pg_tables

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

Table 44-54. pg_tables Columns

NameTypeReferencesDescription
schemanamenamepg_namespace.nspnameName of schema containing table
tablenamenamepg_class.relnameName of table
tableownernamepg_authid.rolnameName of table's owner
tablespacenamepg_tablespace.spcnameName of tablespace containing table (NULL if default for database)
hasindexesbooleanpg_class.relhasindextrue if table has (or recently had) any indexes
hasrulesbooleanpg_class.relhasrulestrue if table has rules
hastriggersbooleanpg_class.reltriggerstrue if table has triggers

copyright  ©  October 11 2008 sean dreilinger url: http://durak.org/sean/pubs/software/postgresql/view-pg-tables.html
Feedback Form