pgsql: Add CHECK_FOR_INTERRUPTS when building pruning steps

From: David Rowley <drowley(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add CHECK_FOR_INTERRUPTS when building pruning steps
Date: 2026-09-18 03:51:37
Message-ID: E1x7PdR-00000000CcY-12VL@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add CHECK_FOR_INTERRUPTS when building pruning steps

Building the partition pruning steps for excessively complex queries
can take some time. Add CHECK_FOR_INTERRUPTS() to
get_steps_using_prefix_recurse() to allow more timely processing of
interruptions.

Bug: #19692
Reported-by: Qifan Liu <imchifan(at)163(dot)com>
Discussion: https://postgr.es/m/19692-dacfc57cda5035fc@postgresql.org
Backpatch-through: 14

Branch
------
REL_17_STABLE

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

Modified Files
--------------
src/backend/partitioning/partprune.c | 2 ++
1 file changed, 2 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2026-09-18 03:52:03 pgsql: Add CHECK_FOR_INTERRUPTS when building pruning steps
Previous Message David Rowley 2026-09-18 03:51:08 pgsql: Add CHECK_FOR_INTERRUPTS when building pruning steps