add batch remove batch split batch comment selection show hidden batches hide batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
setseed
SELECT 1
CREATE TABLE
INSERT 0 110183
INSERT 0 1
INSERT 0 81493
INSERT 0 1
INSERT 0 57659
INSERT 0 1
INSERT 0 250662
count
500000
SELECT 1
CREATE INDEX
VACUUM
QUERY PLAN
Index Only Scan using test_r_idx on public.test (cost=0.29..4.30 rows=1 width=22) (actual time=0.054..0.057 rows=3 loops=1)
  Output: r
  Index Cond: (test.r @> '12345678912'::bigint)
  Heap Fetches: 0
Planning Time: 1.222 ms
Execution Time: 0.097 ms
EXPLAIN
r
[12345678901,12345678914)
[12345678910,12345678913)
[12345678902,12345678921)
SELECT 3