Use REGBUF_NO_CHANGE at one more place in the hash index.
authorAmit Kapila <akapila@postgresql.org>
Mon, 13 Nov 2023 08:38:26 +0000 (14:08 +0530)
committerAmit Kapila <akapila@postgresql.org>
Mon, 13 Nov 2023 08:38:26 +0000 (14:08 +0530)
commit861f86beea1c241943a3ef000e789f18bbc8b7e8
tree5462f024e866ed91ad878321f8c4793c27f0ab35
parent7606175991f8ed5ae36eecf6951cb89dcfb2156e
Use REGBUF_NO_CHANGE at one more place in the hash index.

Commit 00d7fb5e2e started to use REGBUF_NO_CHANGE at a few places in the
code where we register the buffer before marking it dirty but missed
updating one of the code flows in the hash index where we free the overflow
page without any live tuples on it.

Author: Amit Kapila and Hayato Kuroda
Discussion: http://postgr.es/m/f045c8f7-ee24-ead6-3679-c04a43d21351@gmail.com
src/backend/access/hash/hash_xlog.c
src/backend/access/hash/hashovfl.c
src/test/regress/expected/hash_index.out
src/test/regress/sql/hash_index.sql