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?.
3 rows affected
3 rows affected
3 rows affected
one_id | one_name | two_id | two_name | three_id | three_name |
---|---|---|---|---|---|
1 | Honda | 1 | Civic | 1 | door |
1 | Honda | 1 | Civic | 2 | window |
1 | Honda | 2 | Passport | null | null |
2 | Ford | null | null | null | null |
3 | Toyota | 3 | Prius | 3 | trunk |
lvl1_id | lvl1_name | lvl2_id | lvl2_name | lvl3_id | lvl3_name |
---|---|---|---|---|---|
4 | Honda | 4 | Civic | 4 | door |
4 | Honda | 4 | Civic | 5 | window |
4 | Honda | 5 | Passport | null | null |