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?.
5 rows affected
street | zip |
---|---|
a | 123 |
b | 123 |
c | 456 |
d | 789 |
e | 999 |
3 rows affected
zip | name |
---|---|
123 | A |
789 | B |
999 | C |
street | zip | zip | name |
---|---|---|---|
a | 123 | 123 | A |
b | 123 | 123 | A |
c | 456 | null | null |
d | 789 | 789 | B |
e | 999 | 999 | C |
street | zip | zip | name |
---|---|---|---|
a | 123 | 123 | A |
b | 123 | 123 | A |
c | 456 | 789 | B |
d | 789 | 789 | B |
e | 999 | 999 | C |