From: | Thomas Munro <tmunro(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add logging for excessive ProcSignalBarrier waits. |
Date: | 2022-05-11 06:03:29 |
Message-ID: | E1nofRZ-0007lK-6c@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Add logging for excessive ProcSignalBarrier waits.
To enable diagnosis of systems that are not processing ProcSignalBarrier
requests promptly, add a LOG message every 5 seconds if we seem to be
wedged. Although you could already see this state as a wait event in
pg_stat_activity, the log message also shows the PID of the process that
is preventing progress.
Also add DEBUG1 logging around the whole wait loop.
Reviewed-by: Robert Haas <robertmhaas(at)gmail(dot)com>
Discussion: https://postgr.es/m/CA%2BTgmoYJ03r5359gQutRGP9BtigYCg3_UskcmnVjBf-QO3-0pQ%40mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/0d3431497dbe91ba1e428ace4e9537c109eaff07
Modified Files
--------------
src/backend/storage/ipc/procsignal.c | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2022-05-11 06:39:57 | pgsql: Fix typos and grammar in code and test comments |
Previous Message | Amit Kapila | 2022-05-11 05:51:07 | pgsql: Fix the logical replication timeout during large transactions. |