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?.
13 rows affected
user_name | team_id | position |
---|---|---|
1 | A | LEADER |
6 | A | MEMBER |
2 | A | MEMBER |
4 | C | LEADER |
12 | C | MEMBER |
8 | C | MEMBER |
11 | C | MEMBER |
13 | D | |
7 | D | LEADER |
3 | D | MEMBER |
10 | D | null |
9 | X | MEMBER |
5 | X | MEMBER |
counter |
---|
0 |
counter |
---|
1 |
3 rows affected
1 rows affected
user_name | team_id | position |
---|---|---|
6 | A | LEADER |
2 | A | MEMBER |
1 | A | MEMBER |
4 | C | LEADER |
12 | C | MEMBER |
8 | C | MEMBER |
11 | C | MEMBER |
13 | D | |
7 | D | LEADER |
3 | D | MEMBER |
10 | D | null |
9 | X | MEMBER |
5 | X | MEMBER |