pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Add CHECK_FOR_INTERRUPTS in Evict{Rel,All}UnpinnedBuffers.
2+ messages / 1 participants
[nested] [flat]
* pgsql: Add CHECK_FOR_INTERRUPTS in Evict{Rel,All}UnpinnedBuffers.
@ 2025-11-04 23:48 Masahiko Sawada <msawada@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: Masahiko Sawada @ 2025-11-04 23:48 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Add CHECK_FOR_INTERRUPTS in Evict{Rel,All}UnpinnedBuffers.
This commit adds CHECK_FOR_INTERRUPTS to the shared buffer iteration
loops in EvictRelUnpinnedBuffers and EvictAllUnpinnedBuffers. These
functions, used by pg_buffercache's pg_buffercache_evict_relation and
pg_buffercache_evict_all, can now be interrupted during long-running
operations.
Backpatch to version 18, where these functions and their corresponding
pg_buffercache functions were introduced.
Author: Yuhang Qiu <iamqyh@gmail.com>
Discussion: https://postgr.es/m/8DC280D4-94A2-4E7B-BAB9-C345891D0B78%40gmail.com
Backpatch-through: 18
Branch
------
REL_18_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/71aa2e1147b9ddae8e6e9717953c28075e287ad2
Modified Files
--------------
src/backend/storage/buffer/bufmgr.c | 4 ++++
1 file changed, 4 insertions(+)
^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Add CHECK_FOR_INTERRUPTS in Evict{Rel,All}UnpinnedBuffers.
@ 2025-11-04 23:48 Masahiko Sawada <msawada@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: Masahiko Sawada @ 2025-11-04 23:48 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Add CHECK_FOR_INTERRUPTS in Evict{Rel,All}UnpinnedBuffers.
This commit adds CHECK_FOR_INTERRUPTS to the shared buffer iteration
loops in EvictRelUnpinnedBuffers and EvictAllUnpinnedBuffers. These
functions, used by pg_buffercache's pg_buffercache_evict_relation and
pg_buffercache_evict_all, can now be interrupted during long-running
operations.
Backpatch to version 18, where these functions and their corresponding
pg_buffercache functions were introduced.
Author: Yuhang Qiu <iamqyh@gmail.com>
Discussion: https://postgr.es/m/8DC280D4-94A2-4E7B-BAB9-C345891D0B78%40gmail.com
Backpatch-through: 18
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/8ae0f6a0c3da4b1568b753906eb8ea34d41da251
Modified Files
--------------
src/backend/storage/buffer/bufmgr.c | 4 ++++
1 file changed, 4 insertions(+)
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2025-11-04 23:48 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-11-04 23:48 pgsql: Add CHECK_FOR_INTERRUPTS in Evict{Rel,All}UnpinnedBuffers. Masahiko Sawada <msawada@postgresql.org>
2025-11-04 23:48 pgsql: Add CHECK_FOR_INTERRUPTS in Evict{Rel,All}UnpinnedBuffers. Masahiko Sawada <msawada@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox