檢視表 pg_indexes 提供資料庫中每一個索引的資訊。
pg_indexes
Column Type
Description
schemaname name (references pg_namespace.nspname)
schemaname
name
pg_namespace
nspname
Name of schema containing table and index
tablename name (references pg_class.relname)
tablename
pg_class
relname
Name of table the index is for
indexname name (references pg_class.relname)
indexname
Name of index
tablespace name (references pg_tablespace.spcname)
tablespace
pg_tablespace
spcname
Name of tablespace containing index (null if default for database)
indexdef text
indexdef
text
Index definition (a reconstructed CREATE INDEX command)
CREATE INDEX
Last updated 5 years ago
Was this helpful?