Commit 71aa2e1
committed
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: 181 parent 8733f0b commit 71aa2e1
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6683 | 6683 | | |
6684 | 6684 | | |
6685 | 6685 | | |
| 6686 | + | |
| 6687 | + | |
6686 | 6688 | | |
6687 | 6689 | | |
6688 | 6690 | | |
| |||
6733 | 6735 | | |
6734 | 6736 | | |
6735 | 6737 | | |
| 6738 | + | |
| 6739 | + | |
6736 | 6740 | | |
6737 | 6741 | | |
6738 | 6742 | | |
| |||
0 commit comments