postgresql 索引基本操作
--创建索引
CREATE INDEX index_statistics1 ON dbo.integral (deleted,pid,created);
--删除索引(需要选中dbo)
DROP INDEX index_statistics5
--查询索引
SELECT * FROM
pg_indexes
WHERE
schemaname = 'dbo' and tablename ='integral'
--分析sql
EXPLAIN [sql语句]