Re: Add errdetail() with PID and UID about source of termination signal

From: Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Jakub Wartak <jakub(dot)wartak(at)enterprisedb(dot)com>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, Jim Jones <jim(dot)jones(at)uni-muenster(dot)de>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Add errdetail() with PID and UID about source of termination signal
Date: 2026-04-15 16:23:14
Message-ID: CAOYmi+=vsp1reDVo77e9Nx0=kb7hiaPP0jOzMiHWDDM6=afzug@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Apr 15, 2026 at 7:17 AM Andrew Dunstan <andrew(at)dunslane(dot)net> wrote:
> OK, pushed. Thanks.

I hit the following in the pg_basebackup tests just now, running on Linux:

[08:41:21.621](0.377s) ok 196 - Walsender killed
[09:09:11.134](1669.513s) # pump_until: timeout expired when
searching for "(?^:background process terminated unexpectedly)" with
stream: "pg_basebackup: error: unexpected termination of replication
stream: FATAL: terminating connection due to administrator command
# DETAIL: Signal sent by PID 155573, UID 1000.
# "
[09:09:11.134](0.000s) not ok 197 - background process exit message
[09:09:11.134](0.000s) # Failed test 'background process exit message'
# at src/postgres/src/bin/pg_basebackup/t/010_pg_basebackup.pl line 1049.

But I haven't been able to reproduce since, so I don't know if this is
a new race, or the commit just exposed one that was there before?

Thanks,
--Jacob

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2026-04-15 16:51:35 Re: [PATCH] postmaster: fix stale PM_STARTUP comment
Previous Message Tom Lane 2026-04-15 16:04:12 Re: Add errdetail() with PID and UID about source of termination signal