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?.
10 rows affected
id | parent_id | parent_name |
---|---|---|
1 | 0 | Kevin Gravey |
2 | 0 | John Chen |
3 | 0 | Kevin Gravey |
4 | 0 | John Chen |
5 | 0 | Kevin Gravey |
6 | 0 | John Chen |
7 | 0 | Kevin Gravey |
8 | 0 | John Chen |
10 | 0 | Kevin Gravey |
11 | 0 | John Chen |