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?.
9 rows affected
device_id | date | value | timespan2 |
---|---|---|---|
device1 | 2022-04-23 | 0 | 00:10:00 |
device1 | 2022-04-24 | 0 | 03:25:00 |
device1 | 2022-04-24 | 1 | 20:35:00 |
device1 | 2022-04-25 | 1 | 01:00:00 |