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 1441
start_time | events |
---|---|
2018-05-01 00:03:30.345273 | 3 |
2018-05-01 00:20:30.345273 | 3 |
2018-05-01 00:37:30.345273 | 2 |
2018-05-01 00:54:30.345273 | 2 |
2018-05-01 01:11:30.345273 | 2 |
SELECT 5
start_time | events |
---|---|
2018-05-01 00:03:30.345273 | 3 |
2018-05-01 00:20:30.345273 | 3 |
2018-05-01 00:37:30.345273 | 2 |
2018-05-01 00:54:30.345273 | 2 |
2018-05-01 01:11:30.345273 | 2 |
SELECT 5
to_char | events |
---|---|
2023-10-23 00:00 | 0 |
2023-10-23 00:15 | 0 |
2023-10-23 00:30 | 0 |
2023-10-23 00:45 | 0 |
2023-10-23 01:00 | 0 |
SELECT 5