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?.
4 rows affected
name | t | val |
---|---|---|
Alex | st | 8 |
Fred | dt | 3 |
Fred | ot | 2 |
Fred | st | 8 |
Jane | ot | 1 |
Jane | st | 8 |
Samm | dt | 6 |
Samm | st | 8 |
name | tc | val |
---|---|---|
Alex | st | 8 |
Fred | dt | 3 |
Fred | ot | 2 |
Fred | st | 8 |
Jane | ot | 1 |
Jane | st | 8 |
Samm | dt | 6 |
Samm | st | 8 |
name | tc | val |
---|---|---|
Alex | null | null |
Fred | dt | 3 |
Fred | ot | 2 |
Jane | ot | 1 |
Samm | dt | 6 |