↑↓ 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_indexes provides access to useful information about each index in the database.

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

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

Columns 5

As listed in the PostgreSQL 18 manual.

ColumnTypeDescription / reference
schemanamenameName of schema containing table and index
pg_namespace.nspname
tablenamenameName of table the index is for
pg_class.relname
indexnamenameName of index
pg_class.relname
tablespacenameName of tablespace containing index (null if default for database)
pg_tablespace.spcname
indexdeftextIndex definition (a reconstructed CREATE INDEX command)
Column history across versions
Version history 3
  1. 8.4 → 9.0 reworded
  2. 8.1 → 8.2 reworded
  3. 7.4 → 8.0 changed

Definition snapshot: english-manuals:0c8efaf15b0d91378fdaca5b6a8… · English manual source