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
id | val |
---|---|
1 | A-1 |
2 | A-2 |
3 | A-3 |
4 | A-4 |
5 rows affected
id | val |
---|---|
3 | B-3 |
4 | B-4 |
5 | B-5 |
6 | B-6 |
7 | B-7 |
3 rows affected
id | val |
---|---|
1 | A-1 |
2 | A-2 |
3 | A-3 |
4 | A-4 |
5 | B-5 |
6 | B-6 |
7 | B-7 |