add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
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
CREATE FUNCTION
SELECT 10000
SELECT 10000
SELECT 10000
VACUUM
VACUUM
VACUUM
QUERY PLAN
Seq Scan on tbl_nonull (actual rows=10000 loops=1)
Planning Time: 0.170 ms
Execution Time: 4.354 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_nonull (actual rows=10000 loops=1)
Planning Time: 0.052 ms
Execution Time: 39.271 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_nonull (actual rows=10000 loops=1)
Planning Time: 0.118 ms
Execution Time: 3.314 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_nonull (actual rows=10000 loops=1)
Planning Time: 0.079 ms
Execution Time: 37.244 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_nonull (actual rows=10000 loops=1)
Planning Time: 0.107 ms
Execution Time: 3.315 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_nonull (actual rows=10000 loops=1)
Planning Time: 0.081 ms
Execution Time: 38.132 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_null (actual rows=10000 loops=1)
Planning Time: 0.112 ms
Execution Time: 5.773 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_null (actual rows=10000 loops=1)
Planning Time: 0.210 ms
Execution Time: 1.271 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_null (actual rows=10000 loops=1)
Planning Time: 0.059 ms
Execution Time: 1.941 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_null (actual rows=10000 loops=1)
Planning Time: 0.101 ms
Execution Time: 1.360 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_null (actual rows=10000 loops=1)
Planning Time: 0.055 ms
Execution Time: 2.329 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_null (actual rows=10000 loops=1)
Planning Time: 0.125 ms
Execution Time: 1.260 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_mix (actual rows=10000 loops=1)
Planning Time: 0.383 ms
Execution Time: 11.064 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_mix (actual rows=10000 loops=1)
Planning Time: 0.366 ms
Execution Time: 46.420 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_mix (actual rows=10000 loops=1)
Planning Time: 0.269 ms
Execution Time: 4.342 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_mix (actual rows=10000 loops=1)
Planning Time: 0.550 ms
Execution Time: 20.363 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_mix (actual rows=10000 loops=1)
Planning Time: 0.089 ms
Execution Time: 2.114 ms
EXPLAIN
QUERY PLAN
Seq Scan on tbl_mix (actual rows=10000 loops=1)
Planning Time: 0.042 ms
Execution Time: 18.632 ms
EXPLAIN