Provide PID data for "cannot wait on a latch owned by another process" in latch.c - Mailing list pgsql-hackers

From Michael Paquier
Subject Provide PID data for "cannot wait on a latch owned by another process" in latch.c
Date
Msg-id Y/v3V8zpEvl0TPBZ@paquier.xyz
Whole thread Raw
Responses Re: Provide PID data for "cannot wait on a latch owned by another process" in latch.c
List pgsql-hackers
Hi all,

While doing something I should not have done, I have been able to
trigger latch.c with the error of $subject.  Adding in the elog
generated some information about the PID owning the latch and
MyProcPid has made me understand immediately why I was wrong.  Would
there be any objections to add more information in this case?

The attached patch does so.
Thanks,
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Melanie Plageman
Date:
Subject: Re: [PATCH] Reuse Workers and Replication Slots during Logical Replication
Next
From: Michael Paquier
Date:
Subject: Re: Doc update for pg_stat_statements normalization