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?.
SELECT 500000
count min max
500000 2018-01-01 2018-12-31
SELECT 1
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
CREATE FUNCTION
QUERY PLAN
Seq Scan on test (cost=0.00..13499.30 rows=564315 width=4) (actual rows=500000 loops=1)
Planning time: 0.453 ms
Execution time: 450.698 ms
EXPLAIN
QUERY PLAN
Seq Scan on test (cost=0.00..13499.30 rows=564315 width=4) (actual rows=500000 loops=1)
Planning time: 0.090 ms
Execution time: 454.797 ms
EXPLAIN
QUERY PLAN
Seq Scan on test (cost=0.00..148934.90 rows=564315 width=4) (actual rows=500000 loops=1)
Planning time: 0.086 ms
Execution time: 2524.365 ms
EXPLAIN
QUERY PLAN
Seq Scan on test (cost=0.00..19142.45 rows=564315 width=4) (actual rows=500000 loops=1)
Planning time: 1.122 ms
Execution time: 196.706 ms
EXPLAIN
QUERY PLAN
Seq Scan on test (cost=0.00..19142.45 rows=564315 width=4) (actual rows=500000 loops=1)
Planning time: 0.162 ms
Execution time: 193.650 ms
EXPLAIN
QUERY PLAN
Seq Scan on test (cost=0.00..17731.66 rows=564315 width=4) (actual rows=500000 loops=1)
Planning time: 0.146 ms
Execution time: 181.619 ms
EXPLAIN
QUERY PLAN
Seq Scan on test (cost=0.00..17731.66 rows=564315 width=4) (actual rows=500000 loops=1)
Planning time: 0.145 ms
Execution time: 179.849 ms
EXPLAIN
QUERY PLAN
Seq Scan on test (cost=0.00..13499.30 rows=564315 width=4) (actual rows=500000 loops=1)
Planning time: 0.047 ms
Execution time: 443.831 ms
EXPLAIN
QUERY PLAN
Seq Scan on test (cost=0.00..19142.45 rows=564315 width=4) (actual rows=500000 loops=1)
Planning time: 0.093 ms
Execution time: 191.012 ms
EXPLAIN
QUERY PLAN
Seq Scan on test (cost=0.00..17731.66 rows=564315 width=4) (actual rows=500000 loops=1)
Planning time: 0.097 ms
Execution time: 179.731 ms
EXPLAIN