diff options
author | Tomas Vondra <tomas.vondra@postgresql.org> | 2025-07-01 12:58:35 +0200 |
---|---|---|
committer | Tomas Vondra <tomas.vondra@postgresql.org> | 2025-07-01 12:58:35 +0200 |
commit | bf1119d74a79b68d9c9086e5d32d44fb294a1427 (patch) | |
tree | 623b87e52c806e23f0c6fd5521dc61c668a30f4d /src/backend/commands/copyfromparse.c | |
parent | 81f287dc923f565722f46b18d71969926bc3c64f (diff) | |
download | postgresql-bf1119d74a79b68d9c9086e5d32d44fb294a1427.tar.gz postgresql-bf1119d74a79b68d9c9086e5d32d44fb294a1427.zip |
Add CHECK_FOR_INTERRUPTS into pg_numa_query_pages
Querying the NUMA status can be quite time consuming, especially with
large shared buffers. 8cc139bec34a called numa_move_pages() once, for
all buffers, and we had to wait for the syscall to complete.
But with the chunking, introduced by 7fe2f67c7c to work around a kernel
bug, we can do CHECK_FOR_INTERRUPTS() after each chunk, allowing users
to abort the execution.
Reviewed-by: Christoph Berg <myon@debian.org>
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Discussion: https://postgr.es/m/aEtDozLmtZddARdB@msg.df7cb.de
Backpatch-through: 18
Diffstat (limited to 'src/backend/commands/copyfromparse.c')
0 files changed, 0 insertions, 0 deletions