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 12
menu | txt |
---|---|
1 | A1 |
1 | A2 |
2 | A1B1 |
2 | A1B2 |
2 | A2B1 |
2 | A2B2 |
3 | A1B1:C1 |
3 | A1B1:C2 |
3 | A1B2:C1 |
3 | A1B2:C2 |
3 | A2B1:C1 |
3 | A2B1:C2 |
3 | A2B2:C1 |
3 | A2B2:C2 |
SELECT 14