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?.
999 rows affected
QUERY PLAN |
---|
Seq Scan on emp (cost=0.00..26.50 rows=2 width=46) (actual time=0.134..0.134 rows=0 loops=1) |
Filter: ((salary <= 100) AND ((title)::text = 'BOSS'::text)) |
Rows Removed by Filter: 999 |
Planning Time: 0.312 ms |
Execution Time: 0.149 ms |