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
id | name | child1 | age1 | child2 | age2 | child3 | age3 |
---|---|---|---|---|---|---|---|
1 | Rachel | cell | 10 | jay | 15 | john | 20 |
2 | Jereme | greg | 5.5 | Les | 17 | ven | 27 |
SELECT 2