add remove split language chart show hidden hide
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
SELECT 100000
DELETE 10021
VACUUM
count count
9999 5
SELECT 1
lots few
2345 2
SELECT 1
CREATE INDEX
QUERY PLAN
Index Only Scan using tbl_lf_idx on tbl (cost=0.29..4.33 rows=2 width=8) (actual rows=1 loops=1)
  Index Cond: ((lots = 2345) AND (few = 2))
  Heap Fetches: 0
Planning Time: 1.060 ms
Execution Time: 0.765 ms
EXPLAIN
QUERY PLAN
Index Only Scan using tbl_lf_idx on tbl (cost=0.29..4.33 rows=2 width=8) (actual rows=1 loops=1)
  Index Cond: ((lots = 2345) AND (few = 2))
  Heap Fetches: 0
Planning Time: 0.113 ms
Execution Time: 0.033 ms
EXPLAIN
DROP INDEX
CREATE INDEX
QUERY PLAN
Index Only Scan using tbl_fl_idx on tbl (cost=0.29..4.33 rows=2 width=8) (actual rows=1 loops=1)
  Index Cond: ((few = 2) AND (lots = 2345))
  Heap Fetches: 0
Planning Time: 0.409 ms
Execution Time: 0.182 ms
EXPLAIN
QUERY PLAN
Index Only Scan using tbl_fl_idx on tbl (cost=0.29..4.33 rows=2 width=8) (actual rows=1 loops=1)
  Index Cond: ((few = 2) AND (lots = 2345))
  Heap Fetches: 0
Planning Time: 0.097 ms
Execution Time: 0.045 ms
EXPLAIN