aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/spgist
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-05-14 12:54:26 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2021-05-14 12:54:26 -0400
commit4c646b17985cdca9506428ebe2b13ebc5109c35a (patch)
treeb1082254720e0da7ffeba144178dc78d75d13def /src/backend/access/spgist
parentf0d20e5973a26207c0e8efbb09e0b1cf7c27cc64 (diff)
downloadpostgresql-4c646b17985cdca9506428ebe2b13ebc5109c35a.tar.gz
postgresql-4c646b17985cdca9506428ebe2b13ebc5109c35a.zip
Refactor CHECK_FOR_INTERRUPTS() to add flexibility.
Split up CHECK_FOR_INTERRUPTS() to provide an additional macro INTERRUPTS_PENDING_CONDITION(), which just tests whether an interrupt is pending without attempting to service it. This is useful in situations where the caller knows that interrupts are blocked, and would like to find out if it's worth the trouble to unblock them. Also add INTERRUPTS_CAN_BE_PROCESSED(), which indicates whether CHECK_FOR_INTERRUPTS() can be relied on to clear the pending interrupt. This commit doesn't actually add any uses of the new macros, but a follow-on bug fix will do so. Back-patch to all supported branches to provide infrastructure for that fix. Alvaro Herrera and Tom Lane Discussion: https://postgr.es/m/20210513155351.GA7848@alvherre.pgsql
Diffstat (limited to 'src/backend/access/spgist')
0 files changed, 0 insertions, 0 deletions