49.64. pg_indexes

The view pg_indexes provides access to useful information about each index in the database.

Table 49-65. pg_indexes Columns

NameTypeReferencesDescription
schemanamenamepg_namespace.nspnameName of schema containing table and index
tablenamenamepg_class.relnameName of table the index is for
indexnamenamepg_class.relnameName of index
tablespacenamepg_tablespace.spcnameName of tablespace containing index (null if default for database)
indexdeftext Index definition (a reconstructed CREATE INDEX command)