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 2
CREATE TABLE
INSERT 0 3
id | result |
---|---|
1 | {"filled_rows": [{"row_id": 0, "item_ids": [1]}, {"row_id": 2, "item_ids": [2]}, {"row_id": 4, "item_ids": [0, 3]}]} |
2 | {"filled_rows": null} |
SELECT 2