add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
CREATE TABLE
INSERT 0 100000
CREATE INDEX
VACUUM
QUERY PLAN
Aggregate (cost=2214.29..2214.30 rows=1 width=8) (actual time=19.541..19.542 rows=1 loops=1)
  -> Index Only Scan using some_integer_idx on test (cost=0.29..1964.29 rows=100000 width=4) (actual time=0.024..9.247 rows=100000 loops=1)
        Heap Fetches: 0
Planning Time: 0.341 ms
Execution Time: 19.679 ms
EXPLAIN