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

From Heikki Linnakangas
Subject Re: pgsql: Introduce pg_shmem_allocations_numa view
Date
Msg-id 21cc7a48-99d9-4f69-9a3f-2c2de61ac8e5@iki.fi
Whole thread Raw
In response to Re: pgsql: Introduce pg_shmem_allocations_numa view  (Tomas Vondra <tomas@vondra.me>)
Responses Re: pgsql: Introduce pg_shmem_allocations_numa view
List pgsql-hackers
On 01/07/2025 14:03, Tomas Vondra wrote:
> Thanks! Pushed, with both adjustments (link to kernel thread, adding the
> commit hash).
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. It's not used in 
frontend programs today, but it was placed in src/port/ with the idea 
that it could be.

That's pretty easy to fix by wrapping it in an "#ifndef FRONTEND" block, 
per attached.

- Heikki

Attachment

pgsql-hackers by date:

Previous
From: Jakub Wartak
Date:
Subject: Re: Changing shared_buffers without restart
Next
From: Corey Huinker
Date:
Subject: Re: Import Statistics in postgres_fdw before resorting to sampling.