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.
EXPLAIN
-> Limit: 1 row(s) (actual time=0.030..0.030 rows=1 loops=1)
    -> Filter: ((PartitionedTable.id >= 6000) and (PartitionedTable.id < 8000)) (cost=0.10 rows=1) (actual time=0.030..0.030 rows=1 loops=1)
        -> Index scan on PartitionedTable using col (reverse) (cost=0.10 rows=1) (actual time=0.028..0.028 rows=1 loops=1)
EXPLAIN
-> Aggregate: max(PartitionedTable.col) (actual time=0.893..0.893 rows=1 loops=1)
    -> Filter: ((PartitionedTable.id >= 6000) and (PartitionedTable.id < 8000)) (cost=400.26 rows=2000) (actual time=0.027..0.765 rows=2000 loops=1)
        -> Index range scan on PartitionedTable using PRIMARY (cost=400.26 rows=2000) (actual time=0.026..0.551 rows=2000 loops=1)