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 4
id | array_json |
---|---|
123 | [{"end_time": 22, "start_time": 21}] |
124 | [{"end_time": 22, "start_time": 9}, {"end_time": 20, "start_time": 7}] |
123 | [{"end_time": 22, "start_time": 0}] |
125 | [{"end_time": 22, "start_time": 1}, {"end_time": 20, "start_time": 6}] |
SELECT 4