Re: BUG #18582: fixed range of search for empty slot in SLRU

Alvaro Herrera <alvherre@alvh.no-ip.org>

From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: sergey.sargsyan.2001@gmail.com, pgsql-bugs@lists.postgresql.org, Dilip Kumar <dilipbalaut@gmail.com>
Date: 2024-08-13T18:32:01Z
Lists: pgsql-bugs

Attachments

On 2024-Aug-13, PG Bug reporting form wrote:

> pageno should be searched only inside its own bank, because it may never
> appear in other banks.
> 
> https://github.com/postgres/postgres/pull/174

For the archives, the patch proposed in the pull request is attached
here.

I agree with this patch.  This is just an innocuous oversight in commit
53c2a97a9266.  Dilip?

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"El sentido de las cosas no viene de las cosas, sino de
las inteligencias que las aplican a sus problemas diarios
en busca del progreso." (Ernesto Hernández-Novich)

Commits

  1. Search for SLRU page only in its own bank

  2. Improve performance of subsystems on top of SLRU