Thread: pgsql: Stop reading uninitialized memory in heap_inplace_lock().

pgsql: Stop reading uninitialized memory in heap_inplace_lock().

From
Noah Misch
Date:
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

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e11907682846a38068cf0960cd05006b31a9335f

Modified Files
--------------
src/backend/access/heap/heapam.c                   |  3 +--
.../isolation/expected/intra-grant-inplace.out     | 24 ++++++++++++++++++++++
src/test/isolation/specs/intra-grant-inplace.spec  |  8 ++++++++
3 files changed, 33 insertions(+), 2 deletions(-)