摘要: 一、索引的类型: PostgreSQL提供了多 种索引类型:B-Tree、Hash、GiST和GIN,由于它们使用了不同的算法,因此每种索引类型都有其适合的查询类型,缺省时,CREATE INDEX命令将创建B-Tree索引。 1. B-Tree: CREATE TABLE test1 ( id i 阅读全文
posted @ 2019-10-16 17:05 small_lei_it 阅读(3262) 评论(0) 推荐(0) 编辑
摘要: -- 表索引select * from pg_indexes where tablename='person_wechat_label';select * from pg_statio_all_indexes where relname='person_wechat_label';-- 所有表SEL 阅读全文
posted @ 2019-10-16 11:57 small_lei_it 阅读(1346) 评论(0) 推荐(0) 编辑