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?.
QUERY PLAN |
---|
Aggregate (cost=13.60..13.61 rows=1 width=8) (actual time=0.012..0.014 rows=1 loops=1) |
Output: count(fire_year) |
-> Seq Scan on public.fires t (cost=0.00..13.38 rows=90 width=4) (actual time=0.007..0.007 rows=0 loops=1) |
Output: objectid, fire_name, fire_year, discovery_date, discovery_time, stat_cause_descr, fire_size, fire_size_class, latitude, longitude, state, county, discovery_date_j, discovery_date_d |
Filter: (t.objectid <= 2000000) |
Planning Time: 0.758 ms |
Execution Time: 0.297 ms |