- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit8ae0f6a
committed
Add CHECK_FOR_INTERRUPTS in Evict{Rel,All}UnpinnedBuffers.
This commit adds CHECK_FOR_INTERRUPTS to the shared buffer iterationloops in EvictRelUnpinnedBuffers and EvictAllUnpinnedBuffers. Thesefunctions, used by pg_buffercache's pg_buffercache_evict_relation andpg_buffercache_evict_all, can now be interrupted during long-runningoperations.Backpatch to version 18, where these functions and their correspondingpg_buffercache functions were introduced.Author: Yuhang Qiu <iamqyh@gmail.com>Discussion:https://postgr.es/m/8DC280D4-94A2-4E7B-BAB9-C345891D0B78%40gmail.comBackpatch-through: 181 parentfdda78e commit8ae0f6a
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6685 | 6685 | | |
6686 | 6686 | | |
6687 | 6687 | | |
| 6688 | + | |
| 6689 | + | |
6688 | 6690 | | |
6689 | 6691 | | |
6690 | 6692 | | |
| |||
6735 | 6737 | | |
6736 | 6738 | | |
6737 | 6739 | | |
| 6740 | + | |
| 6741 | + | |
6738 | 6742 | | |
6739 | 6743 | | |
6740 | 6744 | | |
| |||
0 commit comments
Comments
(0)