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
jsonb_pretty |
---|
[ { "Date": "2022/1/1", "Light": "blue" }, { "Date": "2022/1/15", "Light": "red" }, { "Date": "2022/1/20", "Light": "black" }, { "Date": "2022/1/26", "Light": "blue" } ] |
[ { "Date": "2022/2/3", "Light": "blue" }, { "Date": "2022/2/11", "Light": "blue" }, { "Date": "2022/2/16", "Light": "black" }, { "Date": "2022/2/18", "Light": "red" }, { "Date": "2022/2/22", "Light": "black" } ] |
SELECT 2
black_dt |
---|
2022/1/20 |
2022/2/16 |
2022/2/22 |
SELECT 3