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
4 rows affected
id | name | vendor_id | v_id |
---|---|---|---|
5 | Sophie | 1 | 1 |
6 | John | 2 | 2 |
id | name | vendor_id | v_id |
---|---|---|---|
3 | Louis | null | null |
4 | Sara | null | null |
5 | Sophie | 1 | 1 |
6 | John | 2 | 2 |
id | name | vendor_id | v_id |
---|---|---|---|
5 | Sophie | 1 | 1 |
6 | John | 2 | 2 |
null | null | null | 9 |
id | name | p_id |
---|---|---|
1 | Anna | 5 |
2 | Bob | 6 |
id | name | p_id |
---|---|---|
1 | Anna | 5 |
2 | Bob | 6 |
9 | TEST | null |
id | name | p_id |
---|---|---|
null | null | 3 |
null | null | 4 |
1 | Anna | 5 |
2 | Bob | 6 |