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