A modest proposal: let's add PID to assertion failure messages - Mailing list pgsql-hackers

From Tom Lane
Subject A modest proposal: let's add PID to assertion failure messages
Date
Msg-id 1568983.1601845687@sss.pgh.pa.us
Whole thread Raw
Responses Re: A modest proposal: let's add PID to assertion failure messages
List pgsql-hackers
In these days when we run almost all test cases in parallel, it's
frequently not that easy to tie a "TRAP: ..." message in the log
to nearby log messages.  (The postmaster's subsequent complaint
often helps, but it could be some distance away in the log; and
good luck untangling things if more than one Assert failure happens
concurrently.)  We could add a simple bread crumb trail by
including the process's PID in such messages.  Any objections?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: small cleanup: unify scanstr() functions
Next
From: David Rowley
Date:
Subject: Re: Buglets in equivclass.c