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?.
3 rows affected
3 rows affected
id | val | idx |
---|---|---|
1111 | 11 | 1 |
2222 | 22 | 2 |
3333 | 33 | 3 |
id | new_val | old_val |
---|---|---|
1111 | 111 | 11 |
3333 | 333 | 33 |
id | val | idx |
---|---|---|
2222 | 22 | 2 |
1111 | 111 | 1 |
3333 | 333 | 3 |