DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

42.44. pg_tables

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

Table 42-44. 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