Re: expose parallel leader in CSV and log_line_prefix

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>, Julien Rouhaud <rjuju123@gmail.com>, Tomas Vondra <tomas.vondra@2ndquadrant.com>, pgsql-hackers@postgresql.org
Date: 2020-07-23T00:52:14Z
Lists: pgsql-hackers
On Wed, Jul 22, 2020 at 11:36:05AM -0400, Alvaro Herrera wrote:
> How about we combine both.  "Process ID of the parallel group leader, if
> this process is a parallel query worker.  NULL if this process is a
> parallel group leader or does not participate in parallel query".

Sounds fine to me.  Thanks.

Do others have any objections with this wording?
--
Michael

Commits

  1. Add %P to log_line_prefix for parallel group leader

  2. Tweak behavior of pg_stat_activity.leader_pid

  3. Add leader_pid to pg_stat_activity