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 10
group_col | array_agg | most_frequent_value |
---|---|---|
1 | {0.97,0.45,0.45,0.33,0.42} | 0.45 |
2 | {0.91,0.42,0.42,0.33,0.12} | 0.42 |
SELECT 2