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 5
CREATE TABLE
INSERT 0 10
id | version_name | parnet_id1 | parent_id2 | timestamp | status |
---|---|---|---|---|---|
UUI2 | B | 1 | 100 | 2022-01-04 00:00:00 | Active |
UUI5 | E | 2 | 100 | 2022-01-04 00:00:00 | Inactive |
SELECT 2