Add debugging help in OwnLatch().
Thomas Munro <tmunro@postgresql.org>
Add debugging help in OwnLatch(). Build farm animal gharial recently failed a few times in a parallel worker's call to OwnLatch() with "ERROR: latch already owned". Let's turn that into a PANIC and show the PID of the owner, to try to learn more. Discussion: https://postgr.es/m/CA%2BhUKGJ_0RGcr7oUNzcHdn7zHqHSB_wLSd3JyS2YC_DYB%2B-V%3Dg%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/ipc/latch.c | modified | +5 −2 |
Discussion
- "ERROR: latch already owned" on gharial 24 messages · 2022-05-25 → 2024-02-10