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
dt | total |
---|---|
2019-07-01 11:00:00 | 161 |
2019-07-01 11:15:00 | 163 |
2019-07-01 12:00:00 | 170 |
dt | seqnum | min | max | max | min | coalesce |
---|---|---|---|---|---|---|
2019-07-01 11:00:00 | 1 | 161 | 161 | null | 3 | 161 |
2019-07-01 11:15:00 | 2 | 163 | 163 | null | 3 | 163 |
2019-07-01 11:30:00 | 3 | 170 | 163 | 3 | 3 | 165 |
2019-07-01 11:45:00 | 4 | 170 | 163 | 4 | 4 | 167 |
2019-07-01 12:00:00 | 5 | 170 | 170 | 4 | null | 170 |