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?.
2 rows affected
id | start | end |
---|---|---|
1 | 2022-05-07 06:00:00 | 2022-05-08 00:00:00 |
1 | 2022-05-08 00:00:00 | 2022-05-09 00:00:00 |
1 | 2022-05-09 00:00:00 | 2022-05-09 12:00:00 |
2 | 2022-05-08 04:00:00 | 2022-05-09 00:00:00 |
2 | 2022-05-09 00:00:00 | 2022-05-10 00:00:00 |
2 | 2022-05-10 00:00:00 | 2022-05-11 00:00:00 |
2 | 2022-05-11 00:00:00 | 2022-05-12 00:00:00 |
2 | 2022-05-12 00:00:00 | 2022-05-12 19:30:00 |