| From: | Masahiko Sawada <msawada(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Add CHECK_FOR_INTERRUPTS in contrib/pg_buffercache functions. |
| Date: | 2025-08-19 19:15:13 |
| Message-ID: | E1uoRnc-000h6x-1U@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Add CHECK_FOR_INTERRUPTS in contrib/pg_buffercache functions.
This commit adds CHECK_FOR_INTERRUPTS to loops iterating over shared
buffers in several pg_buffercache functions, allowing them to be
interrupted during long-running operations.
Backpatch to all supported versions. Add CHECK_FOR_INTERRUPTS to the
loop in pg_buffercache_pages() in all supported branches, and to
pg_buffercache_summary() and pg_buffercache_usage_counts() in version
16 and newer.
Author: SATYANARAYANA NARLAPURAM <satyanarlapuram(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAHg+QDcejeLx7WunFT3DX6XKh1KshvGKa8F5au8xVhqVvvQPRw@mail.gmail.com
Backpatch-through: 13
Branch
------
REL_17_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/b6090ed96b60374560251c6f3ec65309c9ce4b96
Modified Files
--------------
contrib/pg_buffercache/pg_buffercache_pages.c | 6 ++++++
1 file changed, 6 insertions(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Masahiko Sawada | 2025-08-19 19:15:18 | pgsql: Add CHECK_FOR_INTERRUPTS in contrib/pg_buffercache functions. |
| Previous Message | Masahiko Sawada | 2025-08-19 19:15:08 | pgsql: Add CHECK_FOR_INTERRUPTS in contrib/pg_buffercache functions. |