pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility.
6+ messages / 1 participants
[nested] [flat]

* pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility.
@ 2021-05-14 17:29  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2021-05-14 17:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
master

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

Modified Files
--------------
src/backend/tcop/postgres.c | 14 ++++++++++++--
src/include/miscadmin.h     | 34 +++++++++++++++++++++++-----------
2 files changed, 35 insertions(+), 13 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility.
@ 2021-05-14 17:29  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2021-05-14 17:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/39b8ccb08619cb3e4c97d90134fcb7fb48c79bac

Modified Files
--------------
src/backend/tcop/postgres.c | 16 +++++++++++++---
src/include/miscadmin.h     | 34 +++++++++++++++++++++++-----------
2 files changed, 36 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility.
@ 2021-05-14 17:29  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2021-05-14 17:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/8274f4517602112a08f6d06a26ba46ed0c520467

Modified Files
--------------
src/backend/tcop/postgres.c | 14 ++++++++++++--
src/include/miscadmin.h     | 34 +++++++++++++++++++++++-----------
2 files changed, 35 insertions(+), 13 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility.
@ 2021-05-14 17:29  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2021-05-14 17:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4c646b17985cdca9506428ebe2b13ebc5109c35a

Modified Files
--------------
src/backend/tcop/postgres.c | 14 ++++++++++++--
src/include/miscadmin.h     | 34 +++++++++++++++++++++++-----------
2 files changed, 35 insertions(+), 13 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility.
@ 2021-05-14 17:29  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2021-05-14 17:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/567328989c19d1f9f657f5c1b1eac61b29e89b3a

Modified Files
--------------
src/backend/tcop/postgres.c | 16 +++++++++++++---
src/include/miscadmin.h     | 34 +++++++++++++++++++++++-----------
2 files changed, 36 insertions(+), 14 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility.
@ 2021-05-14 17:29  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2021-05-14 17:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/63831c16275e5f59fff9bbb8bca9500e2a5797f0

Modified Files
--------------
src/backend/tcop/postgres.c | 14 ++++++++++++--
src/include/miscadmin.h     | 34 +++++++++++++++++++++++-----------
2 files changed, 35 insertions(+), 13 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2021-05-14 17:29 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14 17:29 pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility. Tom Lane <tgl@sss.pgh.pa.us>
2021-05-14 17:29 pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility. Tom Lane <tgl@sss.pgh.pa.us>
2021-05-14 17:29 pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility. Tom Lane <tgl@sss.pgh.pa.us>
2021-05-14 17:29 pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility. Tom Lane <tgl@sss.pgh.pa.us>
2021-05-14 17:29 pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility. Tom Lane <tgl@sss.pgh.pa.us>
2021-05-14 17:29 pgsql: Refactor CHECK_FOR_INTERRUPTS() to add flexibility. Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox