pgsql: Fix stale idle flag when IO workers exit.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix stale idle flag when IO workers exit.
Date: 2025-07-12 01:33:17
Message-ID: E1uaP77-005qTJ-0n@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix stale idle flag when IO workers exit.

Otherwise we could choose a worker that has exited and crash while
trying to wake it up.

Back-patch to 18.

Reported-by: Tomas Vondra <tomas(at)vondra(dot)me>
Reported-by: Andres Freund <andres(at)anarazel(dot)de>
Discussion: https://postgr.es/m/t5aqjhkj6xdkido535pds7fk5z4finoxra4zypefjqnlieevbg%40357aaf6u525j

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/20b8b5dab983a11b8c8b5ba95f1d6f073ad26300

Modified Files
--------------
src/backend/storage/aio/method_worker.c | 2 ++
1 file changed, 2 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2025-07-12 02:49:53 pgsql: aio: Remove obsolete IO worker ID references.
Previous Message Thomas Munro 2025-07-12 01:33:05 pgsql: Fix stale idle flag when IO workers exit.