Re: Add CHECK_FOR_INTERRUPTS in pg_buffercache_pages while scanning the buffers - Mailing list pgsql-hackers

From SATYANARAYANA NARLAPURAM
Subject Re: Add CHECK_FOR_INTERRUPTS in pg_buffercache_pages while scanning the buffers
Date
Msg-id CAHg+QDdzoHvfr4N7PcQ4Ph+nBYa9skMeMx3g=Nocym5JYWLRSg@mail.gmail.com
Whole thread Raw
In response to Re: Add CHECK_FOR_INTERRUPTS in pg_buffercache_pages while scanning the buffers  (Masahiko Sawada <sawada.mshk@gmail.com>)
List pgsql-hackers
Hi Masahiko,

On Thu, Aug 14, 2025 at 4:57 PM Masahiko Sawada <sawada.mshk@gmail.com> wrote:
On Fri, Aug 8, 2025 at 2:59 PM Masahiko Sawada <sawada.mshk@gmail.com> wrote:
>
> On Thu, Jul 31, 2025 at 4:31 PM SATYANARAYANA NARLAPURAM
> <satyanarlapuram@gmail.com> wrote:
> >
> > Please find attached patch that adds CHECK_FOR_INTERRUPTS while scanning the buffers in pg_buffercache_pages. I checked other functions in the module and this check already exists in pg_buffercache_numa_pages.
>
> Thank you for the patch!
>
> I think the patch is reasonable and it looks good to me. I'll push it
> to master early next week, barring objections.

After reviewing this patch more, I'm leaning toward to backpatch this
change. The patch adds CHECK_FOR_INTERRUPTS() to
pg_buffercache_pages(), pg_buffercache_summary(), and
pg_buffercache_usage_counts(), and the latter two functions were
introduced in v16. Therefore, for v15 or older we can add CFI to only
pg_buffercache_pages() and apply this patch to v16 or newer. Thoughts?

Thanks for reviewing the patch. Sounds good to me.
 
Thanks,
Satya

pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Compilation issues for HASH_STATISTICS and HASH_DEBUG options
Next
From: Nazir Bilal Yavuz
Date:
Subject: Re: Increase OpenBSD CI task's RAM disk size