pgsql: Only show signal-sender PID/UID detail in server log

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Only show signal-sender PID/UID detail in server log
Date: 2026-05-01 17:23:52
Message-ID: E1wIrah-003caz-26@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Only show signal-sender PID/UID detail in server log

The errdetail() added in 55890a91945 (and reworked in 3e2a1496bae)
exposed the operating-system PID and UID of whoever sent the
termination signal directly to the affected client.

Discussion suggested this should not be sent to the client, but only
recorded in the server log where the admin can use it for diagnosis.

Author: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Reviewed-by: Jakub Wartak <jakub(dot)wartak(at)enterprisedb(dot)com>
Discussion: https://postgr.es/m/E5CA274C-74BD-4067-8B73-A3AD8C080EFA@gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b772f3fcad1870731020dbe56713c616abc5dc26

Modified Files
--------------
src/backend/replication/syncrep.c | 7 ++++---
src/backend/tcop/postgres.c | 7 ++++---
src/bin/psql/t/001_basic.pl | 2 +-
3 files changed, 9 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2026-05-01 19:18:14 pgsql: Add missing connection validation in ECPG
Previous Message Amit Kapila 2026-05-01 09:12:09 pgsql: Fix BF failure introduced in commit 2bf6c9ff71.