]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Handle interrupts while waiting on Append's async subplans
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 12 Mar 2025 18:53:09 +0000 (20:53 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 12 Mar 2025 18:53:16 +0000 (20:53 +0200)
commite731e9d5eee8c9ba554b10e4f192951344dd0624
treeb96029e958172f261a257f7eb5403b8b90c302df
parentca0830e5a27a1a7e58bc62b4b7950c1bf96d882c
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
src/backend/executor/nodeAppend.c