pgsql: Search for SLRU page only in its own bank

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Search for SLRU page only in its own bank
Date: 2024-08-19 01:05:36
Message-ID: E1sfqq0-000MRZ-Ey@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Search for SLRU page only in its own bank

One of the two slot scans in SlruSelectLRUPage was not walking only the
slots in the specific bank where the buffer could be; change it to do
that.

Oversight in 53c2a97a9266.

Author: Sergey Sargsyan <sergey(dot)sargsyan(dot)2001(at)gmail(dot)com>
Discussion: https://postgr.es/m/18582-5f301dd30ba91a38@postgresql.org

Branch
------
REL_17_STABLE

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

Modified Files
--------------
src/backend/access/transam/slru.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2024-08-19 03:35:55 pgsql: Fix more holes with SLRU code in need of int64 for segment numbe
Previous Message Alvaro Herrera 2024-08-19 01:04:44 pgsql: Search for SLRU page only in its own bank