Re: expose parallel leader in CSV and log_line_prefix - Mailing list pgsql-hackers

From Justin Pryzby
Subject Re: expose parallel leader in CSV and log_line_prefix
Date
Msg-id 20200710022023.GE26220@telsasoft.com
Whole thread Raw
In response to Re: expose parallel leader in CSV and log_line_prefix  (Michael Paquier <michael@paquier.xyz>)
Responses Re: expose parallel leader in CSV and log_line_prefix
List pgsql-hackers
On Fri, Jul 10, 2020 at 11:09:40AM +0900, Michael Paquier wrote:
> On Thu, Jul 09, 2020 at 01:53:39PM +0200, Julien Rouhaud wrote:
> > Sure!  I've been quite busy with internal work duties recently but
> > I'll review this patch shortly.  Thanks for the reminder!
> 
> Hmm.  In which cases would it be useful to have this information in
> the logs knowing that pg_stat_activity lets us know the link between
> both the leader and its workers?

PSA is an instantaneous view whereas the logs are a record.  That's important
for shortlived processes (like background workers) or in the case of an ERROR
or later crash.

Right now, the logs fail to include that information, which is deficient.  Half
the utility is in showing *that* the log is for a parallel worker, which is
otherwise not apparent.

-- 
Justin



pgsql-hackers by date:

Previous
From: "tsunakawa.takay@fujitsu.com"
Date:
Subject: RE: Postgres is not able to handle more than 4k tables!?
Next
From: Masahiko Sawada
Date:
Subject: Re: Global snapshots