model-writtenrun 2507 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Heikki Linnakangas reported that asynchronous Append waits ignored interrupts, delaying query cancellation and sinval catchup, and described reproducing the problem with a foreign table over a sleeping query #1.
- Adding the latch before configuring subplan events caused a postgres_fdw test to busy-loop because its configuration code relied on the number of registered events #1.
- Heikki’s patch therefore registered the latch after subplan configuration, preserving the existing extension behavior while providing a fix suitable for stable branches; his questions about postgres_fdw’s dependency on other subplans received no answer in this thread #1.
- Heikki committed af717317a0 from #1, moving latch reset and interrupt processing into the wait-event handler and backpatching the fix through PostgreSQL 14.
- Heikki closed the thread by confirming that the fix had landed on master and all affected stable branches #2.