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?.
18 rows affected
id | start_at | end_at | status | sum |
---|---|---|---|---|
82240589 | 2020-03-01 09:13:46 | 2020-03-01 09:14:33 | 70 | 156.00 |
82240589 | 2020-03-01 09:14:43 | 2020-03-01 09:15:01 | 83 | 120.00 |
82240589 | 2020-03-01 09:15:10 | 2020-03-01 09:17:52 | 70 | 388.00 |