Re: pgsql: Introduce pg_shmem_allocations_numa view - Mailing list pgsql-hackers

From Bertrand Drouvot
Subject Re: pgsql: Introduce pg_shmem_allocations_numa view
Date
Msg-id aY4MpVrK++9oXvti@ip-10-97-1-34.eu-west-3.compute.internal
Whole thread Raw
In response to Re: pgsql: Introduce pg_shmem_allocations_numa view  (Álvaro Herrera <alvherre@kurilemu.de>)
Responses Re: pgsql: Introduce pg_shmem_allocations_numa view
List pgsql-hackers
Hi,

On Thu, Feb 12, 2026 at 05:43:47PM +0100, Álvaro Herrera wrote:
> On 2026-Feb-12, Heikki Linnakangas wrote:
> 
> > I just noticed that this (commit bf1119d74a: Add CHECK_FOR_INTERRUPTS into
> > pg_numa_query_pages) made the function unusable in frontend programs,
> > because CHECK_FOR_INTERRUPTS is server only.

Good catch! Out of curiosity how did you find the issue? Were you building a
client tool making used of pg_numa_query_pages()?

> It's not used in frontend
> > programs today, but it was placed in src/port/ with the idea that it could
> > be.
> 
> Your patch LGTM.

+1

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Odd usage of errmsg_internal in bufmgr.c
Next
From: Nathan Bossart
Date:
Subject: Re: refactor architecture-specific popcount code