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?.
time_start | time_end | action |
---|---|---|
2023-07-27 04:52:00.000 | 2023-07-27 04:52:00.000 | running |
2023-07-27 04:55:00.000 | 2023-07-27 04:59:00.000 | walking |
2023-07-27 05:01:00.000 | 2023-07-27 05:01:00.000 | sitting |
2023-07-27 05:06:00.000 | 2023-07-27 05:06:00.000 | walking |
2023-07-27 05:10:00.000 | 2023-07-27 05:10:00.000 | running |
SELECT 5