- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit0beb7e9
committed
Add CHECK_FOR_INTERRUPTS in contrib/pg_buffercache functions.
This commit adds CHECK_FOR_INTERRUPTS to loops iterating over sharedbuffers in several pg_buffercache functions, allowing them to beinterrupted during long-running operations.Backpatch to all supported versions. Add CHECK_FOR_INTERRUPTS to theloop in pg_buffercache_pages() in all supported branches, and topg_buffercache_summary() and pg_buffercache_usage_counts() in version16 and newer.Author: SATYANARAYANA NARLAPURAM <satyanarlapuram@gmail.com>Discussion:https://postgr.es/m/CAHg+QDcejeLx7WunFT3DX6XKh1KshvGKa8F5au8xVhqVvvQPRw@mail.gmail.comBackpatch-through: 131 parenta5d4c04 commit0beb7e9
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
| |||
560 | 562 | | |
561 | 563 | | |
562 | 564 | | |
| 565 | + | |
| 566 | + | |
563 | 567 | | |
564 | 568 | | |
565 | 569 | | |
| |||
620 | 624 | | |
621 | 625 | | |
622 | 626 | | |
| 627 | + | |
| 628 | + | |
623 | 629 | | |
624 | 630 | | |
625 | 631 | | |
| |||
0 commit comments
Comments
(0)