Set LSN for wbuf in _hash_freeovflpage() iff wbuf is modified.
authorAmit Kapila <akapila@postgresql.org>
Wed, 7 Feb 2024 05:40:12 +0000 (11:10 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 7 Feb 2024 05:40:12 +0000 (11:10 +0530)
commitaa5edbe379d645e980f927b01379bdad9bc6c295
treede37447b6c81d32dbe72dfac36aff6bab5e82590
parent22f7e61a63306873211e26c7bac9c68631309aef
Set LSN for wbuf in _hash_freeovflpage() iff wbuf is modified.

Commit 861f86beea used REGBUF_NO_CHANGE at one of the places in the hash
index to register the clean buffers but forgot to avoid setting LSN in
that case.

Reported-by: Michael Paquier
Author: Kuroda Hayato
Reviewed-by: Amit Kapila, Michael Paquier
Discussion: https://postgr.es/m/ZbyVVG_7eW3YD5-A@paquier.xyz
src/backend/access/hash/hashovfl.c