43.36. pg_tables

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

Table 43-36. pg_tables Columns

schemanamenamepg_namespace.nspnamename of schema containing table
tablenamenamepg_class.relnamename of table
tableownernamepg_shadow.usenamename of table's owner
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