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 TABLE
INSERT 0 7
x w_count avg_x case
1 1 1.00000000000000000000 1
2 2 1.5000000000000000 1.5000000000000000
3 3 2.0000000000000000 2
5 4 2.7500000000000000 2.5000000000000000
8 4 4.5000000000000000 4.0000000000000000
13 4 7.2500000000000000 6.5000000000000000
21 4 11.7500000000000000 10.5000000000000000
SELECT 7