pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility.

2021-05-14 Thread Tom Lane
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

pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility.

2021-05-14 Thread Tom Lane
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

pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility.

2021-05-14 Thread Tom Lane
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

pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility.

2021-05-14 Thread Tom Lane
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

pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility.

2021-05-14 Thread Tom Lane
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

pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility.

2021-05-14 Thread Tom Lane
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