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 FUNCTION
f_explain |
---|
Result (cost=0.00..0.01 rows=1 width=4) |
SELECT 1
f_explain |
---|
Result (cost=0.00..0.01 rows=1 width=4) (actual time=0.001..0.001 rows=1 loops=1) |
Planning Time: 0.007 ms |
Execution Time: 0.006 ms |
SELECT 3