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
CREATE TABLE
CREATE TABLE
INSERT 0 2
QUERY PLAN |
---|
Seq Scan on test_1 test (cost=0.00..26.05 rows=1 width=48) (actual time=0.179..0.181 rows=1 loops=1) |
Filter: ((v1 = 100) AND (v2 = 100)) |
Planning Time: 1.656 ms |
Execution Time: 0.225 ms |
EXPLAIN