時間:2024-02-14 10:20作者:下載吧人氣:17
前段時間碰到個奇怪的索引失效的問題,實際情況類似下面這樣:
bill=# begin;bill=*# end;
COMMIT
bill=# explain select * from t1 where id = 1;
QUERY PLAN
———————————————————————
Bitmap Heap Scan on t1 (cost=1.50..7.01 rows=6 width=36)
Recheck Cond: (id = 1)
-> Bitmap Index Scan on idx_t1 (cost=0.00..1.50 rows=6 width=0)
Index Cond: (id = 1)
(4 rows)
網(wǎng)友評論