Re: slru bank

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: 席冲(宜穆) <xichong(dot)xc(at)alibaba-inc(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: slru bank
Date: 2024-08-23 02:19:35
Message-ID: CAKFQuwYJn=8meANPso9FqTc+Wv=at9suxi25wtrxX1gnJkM4MA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Aug 22, 2024 at 7:07 PM 席冲(宜穆) <xichong(dot)xc(at)alibaba-inc(dot)com> wrote:

> In SlruSelectLRUPage(), Why do we need to traverse all slots to find that
> a page already has a buffer assigned? Why not find it
> from the [bankstart,bankend]?
>
>
Only the bank is searched, both of the logic loops are bounded by:

for (int slotno = bankstart; slotno < bankend; slotno++)

David J.

In response to

  • slru bank at 2024-08-23 02:06:48 from 席冲 (宜穆)

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2024-08-23 02:27:42 Re: slru bank
Previous Message 席冲 (宜穆) 2024-08-23 02:06:48 slru bank