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

From Michael Paquier
Subject Re: expose parallel leader in CSV and log_line_prefix
Date
Msg-id 20200721043821.GD17300@paquier.xyz
Whole thread Raw
In response to Re: expose parallel leader in CSV and log_line_prefix  (Julien Rouhaud <rjuju123@gmail.com>)
List pgsql-hackers
On Fri, Jul 17, 2020 at 07:34:54AM +0200, Julien Rouhaud wrote:
> I had the same concern and was thinking about this approach too.
> Another argument is that IIUC any log emitted due to
> log_min_duration_statement wouldn't see the backend as executing a
> parallel query, since the workers would already have been shut down.

Not sure that it is worth bothering about this case.  You could also
have a backend killed by log_min_duration_statement on a query that
did not involve parallel query, where you would still report the PID
if it got involved at least once in parallel query for a query before
that.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: Re: shared tempfile was not removed on statement_timeout
Next
From: Amul Sul
Date:
Subject: Re: new heapcheck contrib module