The view pg_indexes provides access to useful information about each index in the database.
pg_indexes
Name
Type
References
Description
schemaname
name
pg_namespacearrow-up-right.nspname
pg_namespace
Name of schema containing table and index
tablename
pg_classarrow-up-right.relname
pg_class
Name of table the index is for
indexname
Name of index
tablespace
pg_tablespacearrow-up-right.spcname
pg_tablespace
Name of tablespace containing index (null if default for database)
indexdef
text
Index definition (a reconstructed CREATE INDEX command)
CREATE INDEX
Last updated 4 years ago
Was this helpful?