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 8
id | name | child1 | age1 | child2 | age2 | child3 | age3 |
---|---|---|---|---|---|---|---|
3 | Larry | gray | 12 | null | null | null | null |
4 | Jer | white | 16 | null | null | null | null |
SELECT 2