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?.
version
PostgreSQL 14.4 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-10), 64-bit
6 rows affected
size id name capped_at_600 large_or_eq_600
100 1 John 100 f
200 2 Mary 300 f
300 3 Jane 600 t
400 4 Anne 400 f
100 5 Mike 500 f
600 6 Joanne 1100 t
id name size size_total size_group
1 John 100 100 1
2 Mary 200 300 1
3 Jane 300 600 1
4 Anne 400 1000 2
5 Mike 100 1100 2
6 Joanne 600 1700 3