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?.
CREATE TABLE
INSERT 0 6
ts_interval_begin | low | high |
---|---|---|
2018-08-19 01:00:00+01 | 2.0000000000000000 | 20.0000000000000000 |
2018-08-19 01:05:00+01 | 5.0000000000000000 | 50.0000000000000000 |
2018-08-19 01:10:00+01 | 10.0000000000000000 | 100.0000000000000000 |
SELECT 3