pgsql: Set LSN for wbuf in _hash_freeovflpage() iff wbuf is modified.

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Set LSN for wbuf in _hash_freeovflpage() iff wbuf is modified.
Date: 2024-02-07 05:58:36
Message-ID: E1rXaxA-0052UX-5a@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

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

Modified Files
--------------
src/backend/access/hash/hashovfl.c | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2024-02-07 08:22:53 pgsql: Adjust reltarget assignment for UPPERREL_PARTIAL_DISTINCT rel
Previous Message Amit Kapila 2024-02-07 04:48:08 pgsql: Clean-ups for 776621a5e4 and 7329240437.