pg_indexes
视图 pg_indexes 提供对数据库中每个索引有用 信息的访问。
Table 53.12. \1 字段列说明
\1
Column Type
Description
schemaname name (references pg_namespace.nspname)
schemaname
name
pg_namespace
nspname
包含表和索引的模式的名称
tablename name (references pg_class.relname)
tablename
pg_class
relname
索引所属表的名称
indexname name (references pg_class.relname)
indexname
索引的名称
tablespace name (references pg_tablespace.spcname)
tablespace
pg_tablespace
spcname
包含该索引的表空间的名字(如果使用数据库默认值则为空)
indexdef text
indexdef
text
索引定义(一条重构的 CREATE INDEX 命令)