Re: expose parallel leader in CSV and log_line_prefix
Justin Pryzby <pryzby@telsasoft.com>
From: Justin Pryzby <pryzby@telsasoft.com>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: Michael Paquier <michael@paquier.xyz>, Daniel Gustafsson <daniel@yesql.se>, pgsql-hackers@postgresql.org
Date: 2020-07-10T16:11:15Z
Lists: pgsql-hackers
Attachments
- v2-0001-Include-the-leader-PID-in-logfile.patch (text/x-diff)
On Fri, Jul 10, 2020 at 05:13:26PM +0200, Julien Rouhaud wrote: > There's a thinko in the padding handling. It should be dones whether MyProc > and/or lockGroupLeader is NULL or not, and only if padding was asked, like it's > done for case 'd' for instance. > > Also, the '%k' escape sounds a bit random. Is there any reason why we don't > use any uppercase character for log_line_prefix? %P could be a better > alternative, otherwise maybe %g, as GroupLeader/Gather? Thanks for looking. %P is a good idea - it's consistent with ps and pkill and probably other %commands. I also amended the docs. -- Justin
Commits
-
Add %P to log_line_prefix for parallel group leader
- b8fdee7d0ca8 14.0 landed
-
Tweak behavior of pg_stat_activity.leader_pid
- 21b0055359f0 13.0 landed
- 11a68e4b53ff 14.0 landed
-
Add leader_pid to pg_stat_activity
- b025f32e0b5d 13.0 cited