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?.
7 rows affected
id | name | spent |
---|---|---|
4 | a | 3.2 |
1 | a | 5.5 |
6 | a | 3 |
5 | b | 4.6 |
2 | b | 16 |
7 | c | 1.2 |
3 | c | 7 |
2 rows affected
id | name | spent |
---|---|---|
6 | a | 3 |
1 | a | 1 |
4 | a | 1 |
2 | b | 16 |
5 | b | 4.6 |
7 | c | 1.2 |
3 | c | 7 |