pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-hackers@lists.postgresql.org
Subject: A modest proposal: let's add PID to assertion failure messages
Date: Sun, 04 Oct 2020 17:08:07 -0400
Message-ID: <1568983.1601845687@sss.pgh.pa.us> (raw)

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





view thread (5+ messages)  latest in thread

Message-ID: <1568983.1601845687@sss.pgh.pa.us>
Permalink:  ../1568983.1601845687@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1568983.1601845687@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-hackers@lists.postgresql.org
  Subject: Re: A modest proposal: let's add PID to assertion failure messages
  In-Reply-To: <1568983.1601845687@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox