From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add %P to log_line_prefix for parallel group leader
Date: Mon, 03 Aug 2020 04:39:21 +0000
Message-ID: <E1k2SFt-0004sQ-6A@gemulon.postgresql.org> (raw)
Add %P to log_line_prefix for parallel group leader
This is useful for monitoring purposes with log parsing. Similarly to
pg_stat_activity, the leader's PID is shown only for active parallel
workers, minimizing the log footprint for the leaders as the equivalent
shared memory field is set as long as a backend is alive.
Author: Justin Pryzby
Reviewed-by: Álvaro Herrera, Michael Paquier, Julien Rouhaud, Tom Lane
Discussion: https://postgr.es/m/20200315111831.GA21492@telsasoft.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b8fdee7d0ca8bd2165d46fb1468f75571b706a01
Modified Files
--------------
doc/src/sgml/config.sgml | 9 ++++++-
src/backend/utils/error/elog.c | 38 +++++++++++++++++++++++++++
src/backend/utils/misc/postgresql.conf.sample | 1 +
3 files changed, 47 insertions(+), 1 deletion(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Add %P to log_line_prefix for parallel group leader
In-Reply-To: <E1k2SFt-0004sQ-6A@gemulon.postgresql.org>
References: <E1k2SFt-0004sQ-6A@gemulon.postgresql.org>
* 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