pgsql: bufmgr: Fix use of wrong variable in GetPrivateRefCountEntrySlow

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: bufmgr: Fix use of wrong variable in GetPrivateRefCountEntrySlow
Date: 2026-03-11 21:56:53
Message-ID: E1w0RXx-003Who-2S@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

bufmgr: Fix use of wrong variable in GetPrivateRefCountEntrySlow()

Unfortunately, in 30df61990c67, I made GetPrivateRefCountEntrySlow() set a
wrong cache hint when moving entries from the hash table to the faster array.
There are no correctness concerns due to this, just an unnecessary loss of
performance.

Noticed while testing the index prefetching patch.

Discussion: https://postgr.es/m/CAH2-Wz=g=JTSyDB4UtB5su2ZcvsS7VbP+ZMvvaG6ABoCb+s8Lw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6322a028fa437669022473be8af39bbd89b644c3

Modified Files
--------------
src/backend/storage/buffer/bufmgr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Richard Guo 2026-03-12 00:46:25 pgsql: Convert NOT IN sublinks to anti-joins when safe
Previous Message Andres Freund 2026-03-11 21:49:00 Re: pgsql: CREATE SUBSCRIPTION ... SERVER.