pg数据库索引查询删除
# 查询
SELECT * FROM pg_indexes WHERE tablename = 'tablename'
删除索引
DROP INDEX indexname;
创建索引
# CREATE INDEX 索引名称 ON 表名 USING 索引类型 (字段) CREATE INDEX systemtime_index ON buct_composedata USING btree (systemtime)
-- 组合索引
CREATE INDEX index_name ON tablename USING btree (col1, col2, col3);