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?.
device_id | state |
---|---|
1 | ("2021-11-11 11:11:11",foo) |
2 | null |
device_id | state |
---|---|
1 | ("2021-12-04 15:51:24.888234",foo) |
device_id | state |
---|---|
3 | null |
device_id | state |
---|---|
1 | ("2021-12-04 15:51:24.888234",foo) |
3 | null |