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?.
SELECT 20000
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
VACUUM
QUERY PLAN |
---|
Seq Scan on quick_test (actual rows=20000 loops=1) |
Planning Time: 0.255 ms |
Execution Time: 1392.805 ms |
EXPLAIN
QUERY PLAN |
---|
Seq Scan on quick_test (actual rows=20000 loops=1) |
Planning Time: 0.084 ms |
Execution Time: 889.644 ms |
EXPLAIN
QUERY PLAN |
---|
Seq Scan on quick_test (actual rows=20000 loops=1) |
Planning Time: 0.094 ms |
Execution Time: 827.999 ms |
EXPLAIN