Add debugging help in OwnLatch().

Enterprise / PostgreSQL - Thomas Munro [postgresql.org] - 31 May 2022 00:06 UTC

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

12e28aac8e Add debugging help in OwnLatch().
src/backend/storage/ipc/latch.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

Upstream: git.postgresql.org


  • Share