expose parallel leader in CSV and log_line_prefix

Justin Pryzby <pryzby@telsasoft.com>

From: Justin Pryzby <pryzby@telsasoft.com>
To: pgsql-hackers@postgresql.org
Cc: Julien Rouhaud <rjuju123@gmail.com>
Date: 2020-03-15T11:18:31Z
Lists: pgsql-hackers

Attachments

See also:
https://commitfest.postgresql.org/27/2390/
https://www.postgresql.org/message-id/flat/CAOBaU_Yy5bt0vTPZ2_LUM6cUcGeqmYNoJ8-Rgto+c2+w3defYA@mail.gmail.com
b025f32e0b Add leader_pid to pg_stat_activity

-- 
Justin

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