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 1
serialnumber | beginningdate | enddate |
---|---|---|
940860 | 2023-05-20T11:53:39 | 2023-05-22T09:04:04 |
SELECT 1
id | channelid |
---|---|
1 | 11 |
2 | 12 |
3 | 13 |
4 | 14 |
5 | 17 |
SELECT 5