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 3
id | fid | ts | val | fidtarget | fidsource | id | fid | ts | val |
---|---|---|---|---|---|---|---|---|---|
402280209 | 3771 | 2021-09-20 00:00:00 | 2023-12-19 00:00:00 | 3771 | 3782 | 402280209 | 3782 | 2021-09-20 00:00:00 | 2023-12-19 00:00:00 |
402280209 | 3782 | 2021-09-20 00:00:00 | 2023-09-20 00:00:00 | 3782 | 3771 | 402280209 | 3771 | 2021-09-20 00:00:00 | 2023-09-20 00:00:00 |
UPDATE 2