↑↓ select↵ open⌫ change scopeOpen full search

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

Wiki / System Catalogs

pg_tables

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

English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.

Reading PG 18·Select a recorded version

kind
view
lang
en
measured attributes
true
metadata release
18.6
runtime columns
schemaname, tablename, tableowner, tablespace, hasindexes, hasrules, hastriggers, rowsecurity
runtime verified
false
source
english-manual

Definition PG 18

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

Catalog columns

ColumnTypeNullabilityDescription
schemanamenameNullableName of schema containing table
tablenamenameNullableName of table
tableownernameNullableName of table's owner
tablespacenameNullableName of tablespace containing table (null if default for database)
hasindexesboolNullableTrue if table has (or recently had) any indexes
hasrulesboolNullableTrue if table has (or once had) rules
hastriggersboolNullableTrue if table has (or once had) triggers
rowsecurityboolNullableTrue if row security is enabled on the table

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 18 · catalog-bilingual-repair:4d3fa722852a74a4cb4baa3e386435ea8b242dcd30c160802204b1969c570ead

Text language: en · catalog-bilingual-repair:4d3fa722852a74a4cb4baa3e386435ea8b242dcd30c160802204b1969c570ead