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

From Alvaro Herrera
Subject Re: expose parallel leader in CSV and log_line_prefix
Date
Msg-id 20200717153540.GA17100@alvherre.pgsql
Whole thread Raw
In response to Re: expose parallel leader in CSV and log_line_prefix  (Julien Rouhaud <rjuju123@gmail.com>)
Responses Re: expose parallel leader in CSV and log_line_prefix
List pgsql-hackers
> On Fri, Jul 17, 2020 at 7:01 AM Michael Paquier <michael@paquier.xyz> wrote:
>
> > Hmm.  Knowing if a leader is actually running parallel query or not
> > requires a lookup at lockGroupMembers, that itself requires a LWLock.
> > I think that it would be better to not require that.  So what if
> > instead we logged %P only if Myproc has lockGroupLeader set and it
> > does *not* match MyProcPid?

That's what I said first, so +1 for that approach.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Patch for reorderbuffer.c documentation.
Next
From: Ashutosh Bapat
Date:
Subject: Re: Partitioning and postgres_fdw optimisations for multi-tenancy