Provide PID data for "cannot wait on a latch owned by another process" in latch.c

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Provide PID data for "cannot wait on a latch owned by another process" in latch.c
Date: 2023-02-27 00:20:39
Message-ID: Y/v3V8zpEvl0TPBZ@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
latch-elog.patch text/x-diff 1.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2023-02-27 00:36:46 Re: Doc update for pg_stat_statements normalization
Previous Message Melanie Plageman 2023-02-27 00:10:33 Re: [PATCH] Reuse Workers and Replication Slots during Logical Replication