↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

System Catalogs / System views

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

Reading PG 18current·documented in 24 of 24 versions, 7.4 to 20

Kind
System views
Columns in this snapshot
8
Definition source
English manual
Metadata snapshot
18.6

Columns 8

As listed in the PostgreSQL 18 manual.

ColumnTypeDescription / reference
schemanamenameName of schema containing table
pg_namespace.nspname
tablenamenameName of table
pg_class.relname
tableownernameName of table's owner
pg_authid.rolname
tablespacenameName of tablespace containing table (null if default for database)
pg_tablespace.spcname
hasindexesboolTrue if table has (or recently had) any indexes
pg_class.relhasindex
hasrulesboolTrue if table has (or once had) rules
pg_class.relhasrules
hastriggersboolTrue if table has (or once had) triggers
pg_class.relhastriggers
rowsecurityboolTrue if row security is enabled on the table
pg_class.relrowsecurity
Column history across versions
Version history 5
  1. 9.4 → 9.5 changed
  2. 8.4 → 9.0 reworded
  3. 8.3 → 8.4 reworded
  4. 8.1 → 8.2 reworded
  5. 7.4 → 8.0 changed

Definition snapshot: english-manuals:d3b90a4fcb70a6992ea31eb4d6a… · English manual source