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 3
jsonb_build_array |
---|
["value_1", "some_value"] |
["value_2", "another_value"] |
["value_1", "other_value"] |
SELECT 3
INSERT 0 1
id | jsonb_agg |
---|---|
1 | ["value_1", "some_value"] |
2 | ["value_2", "another_value"] |
3 | ["value_1", "other_value"] |
4 | ["value_1", "some_value", "some_other_value"] |
SELECT 4