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
CREATE TABLE
INSERT 0 4
INSERT 0 4
a | b | c |
---|---|---|
1 | 2 | 3 |
10 | 11 | 12 |
SELECT 2
a | b | c | t1 | t2 |
---|---|---|---|---|
1 | 2 | 3 | t1 | null |
13 | 14 | null | t1 | null |
10 | 11 | 12 | null | t2 |
13 | 14 | null | null | t2 |
SELECT 4
ERROR: FULL JOIN is only supported with merge-joinable or hash-joinable join conditions