Re: expose parallel leader in CSV and log_line_prefix

Julien Rouhaud <rjuju123@gmail.com>

From: Julien Rouhaud <rjuju123@gmail.com>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Justin Pryzby <pryzby@telsasoft.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-07-09T11:53:39Z
Lists: pgsql-hackers
On Thu, Jul 9, 2020 at 1:48 PM Daniel Gustafsson <daniel@yesql.se> wrote:
>
> > On 18 Mar 2020, at 22:25, Justin Pryzby <pryzby@telsasoft.com> wrote:
>
> > This also fixes unsafe access to lockGroupLeader->pid, same issue as in the
> > original v1 patch for b025f32e0b.
>
> Julian, having been involved in the other threads around this topic, do you
> have time to review this latest version during the commitfest?

Sure!  I've been quite busy with internal work duties recently but
I'll review this patch shortly.  Thanks for the reminder!



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