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?.
3 rows affected
21 rows affected
id | device | first_intv_id | first_created_at | first_value | last_intv_id | last_created_at | last_value |
---|---|---|---|---|---|---|---|
206 | dev206 | 15269665 | 2018-07-21 00:10:00 | 5099.55 | 15284495 | 2018-07-21 03:00:00 | 5100.93 |
207 | dev207 | 15290954 | 2018-07-22 02:20:00 | 5100.59 | 15292724 | 2018-07-22 22:40:00 | 5100.75 |
208 | dev208 | null | null | null | null | null | null |
device_id | first_created_at | first_value | last_created_at | last_value |
---|---|---|---|---|
206 | 2018-07-21 00:10:00 | 5099.55 | 2018-07-21 03:00:00 | 5100.93 |
207 | 2018-07-22 02:20:00 | 5100.59 | 2018-07-22 22:40:00 | 5100.75 |