pg_tables — PostgreSQL system view

The PostgreSQL pg_tables system view: full column reference (names, types, descriptions), catalog relationships and version support.

Summary

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

(Description quoted from the official PostgreSQL documentation.)

Columns

The pg_tables system view exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):

Related catalogs

This object references the following other system catalogs:

Version applicability

Present in PostgreSQL 17, 18, 19 (verified against each release’s documentation). This is a long-standing system object that also exists in earlier PostgreSQL releases.

Related & references

Reference: PostgreSQL documentation — pg_tables.