pgsql: Handle interrupts while waiting on Append's async subplans

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Handle interrupts while waiting on Append's async subplans
Date: 2025-03-12 19:15:21
Message-ID: E1tsRY1-0028so-1f@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Handle interrupts while waiting on Append's async subplans

We did not wake up on interrupts while waiting on async events on an
async-capable append node. For example, if you tried to cancel the
query, nothing would happen until one of the async subplans becomes
readable. To fix, add WL_LATCH_SET to the WaitEventSet.

Backpatch down to v14 where async Append execution was introduced.

Discussion: https://www.postgresql.org/message-id/37a40570-f558-40d3-b5ea-5c2079b3b30b@iki.fi

Branch
------
REL_15_STABLE

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

Modified Files
--------------
src/backend/executor/nodeAppend.c | 28 +++++++++++++++++++++++++---
1 file changed, 25 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Melanie Plageman 2025-03-12 20:00:03 pgsql: Increase default effective_io_concurrency to 16
Previous Message Daniel Gustafsson 2025-03-12 16:36:40 Re: pgsql: Modularize log_connections output