## 52.92. `pg_tables`

[]()

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

**Table 52.93. `pg_tables` Columns**

|                                                                  Column Type<br/><br/> Description                                                                  |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|                  `schemaname` `name` (references [`pg_namespace`](catalog-pg-namespace.html).`nspname`)<br/><br/> Name of schema containing table                   |
|                                `tablename` `name` (references [`pg_class`](catalog-pg-class.html).`relname`)<br/><br/> Name of table                                |
|                          `tableowner` `name` (references [`pg_authid`](catalog-pg-authid.html).`rolname`)<br/><br/> Name of table's owner                           |
|`tablespace` `name` (references [`pg_tablespace`](catalog-pg-tablespace.html).`spcname`)<br/><br/> Name of tablespace containing table (null if default for database)|
|            `hasindexes` `bool` (references [`pg_class`](catalog-pg-class.html).`relhasindex`)<br/><br/> True if table has (or recently had) any indexes             |
|                  `hasrules` `bool` (references [`pg_class`](catalog-pg-class.html).`relhasrules`)<br/><br/> True if table has (or once had) rules                   |
|              `hastriggers` `bool` (references [`pg_class`](catalog-pg-class.html).`relhastriggers`)<br/><br/> True if table has (or once had) triggers              |
|            `rowsecurity` `bool` (references [`pg_class`](catalog-pg-class.html).`relrowsecurity`)<br/><br/> True if row security is enabled on the table            |

