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
last_october |
---|
2023-10-01 00:00:00+00 |
SELECT 1
start_date | end_date |
---|---|
2023-10-01 | 2023-10-20 |
2023-10-01 | 2024-01-07 |
2023-12-01 | 2024-01-20 |
SELECT 3