Re: expose parallel leader in CSV and log_line_prefix

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Justin Pryzby <pryzby@telsasoft.com>, Julien Rouhaud <rjuju123@gmail.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-07-09T11:48:55Z
Lists: pgsql-hackers
> 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?

cheers ./daniel



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