Stop reading uninitialized memory in heap_inplace_lock().
Noah Misch <noah@leadboat.com>
Stop reading uninitialized memory in heap_inplace_lock(). Stop computing a never-used value. This removes the read; the read had no functional implications. Back-patch to v12, like commit a07e03fd8fa7daf4d1356f7cb501ffe784ea6257. Reported by Alexander Lakhin. Discussion: https://postgr.es/m/6c92f59b-f5bc-e58c-9bdd-d1f21c17c786@gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/heapam.c | modified | +1 −2 |
| src/test/isolation/expected/intra-grant-inplace.out | modified | +24 −0 |
| src/test/isolation/specs/intra-grant-inplace.spec | modified | +8 −0 |
Discussion
- race condition in pg_class 86 messages · 2023-10-25 → 2026-02-16