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?.
1 rows affected
fiedl1 |
---|
{1001,1005} |
4 rows affected
id |
---|
1001 |
2001 |
2321 |
1005 |
value | rn |
---|---|
1001 | 1 |
1005 | 2 |
1 rows affected
id |
---|
1001 |
2001 |
2321 |