Add logging for excessive ProcSignalBarrier waits.
Thomas Munro <tmunro@postgresql.org>
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@gmail.com> Discussion: https://postgr.es/m/CA%2BTgmoYJ03r5359gQutRGP9BtigYCg3_UskcmnVjBf-QO3-0pQ%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/ipc/procsignal.c | modified | +16 −2 |
Discussion
- wrong fds used for refilenodes after pg_upgrade relfilenode changes Reply-To: 39 messages · 2022-02-09 → 2022-05-14