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?.
6 rows affected
student_id |
---|
100001 |
100002 |
100003 |
100004 |
100005 |
100006 |
student_id | new_student_id |
---|---|
100001 | 1 |
100002 | 2 |
100003 | 3 |
100004 | 4 |
100005 | 5 |
100006 | 6 |