pgsql: Add CHECK_FOR_INTERRUPTS in contrib/pg_buffercache functions. - Mailing list pgsql-committers

From Masahiko Sawada
Subject pgsql: Add CHECK_FOR_INTERRUPTS in contrib/pg_buffercache functions.
Date
Msg-id E1uoRnS-000h5k-3B@gemulon.postgresql.org
Whole thread Raw
List 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@gmail.com>
Discussion: https://postgr.es/m/CAHg+QDcejeLx7WunFT3DX6XKh1KshvGKa8F5au8xVhqVvvQPRw@mail.gmail.com
Backpatch-through: 13

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/eb9ee4d1818cd228d80049fd42efbfaabc187c20

Modified Files
--------------
contrib/pg_buffercache/pg_buffercache_pages.c | 3 +++
1 file changed, 3 insertions(+)


pgsql-committers by date:

Previous
From: Masahiko Sawada
Date:
Subject: pgsql: Add CHECK_FOR_INTERRUPTS in contrib/pg_buffercache functions.
Next
From: Masahiko Sawada
Date:
Subject: pgsql: Add CHECK_FOR_INTERRUPTS in contrib/pg_buffercache functions.