pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julien Rouhaud <rjuju123@gmail.com>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: Move pg_stat_statements query jumbling to core.
Date: Thu, 8 Apr 2021 14:49:19 +0800
Message-ID: <20210408064919.bxqnzpi2ctt3rfzg@nol> (raw)
In-Reply-To: <CAA4eK1KbQp3-H2wFELhC40txvC8YiacX3qzsyP0Lj4ayzSnGmw@mail.gmail.com>
References: <E1lUBdr-0000k6-N8@gemulon.postgresql.org>
	<20210408051735.lfbdzun5zdlax5gd@alap3.anarazel.de>
	<CAOBaU_aOr8LRyzmgnq78Qp9oJup9TQ3i67STLYfBJDGu3tYvjw@mail.gmail.com>
	<20210408061102.xripofnfvqt7qcrg@nol>
	<CAA4eK1KbQp3-H2wFELhC40txvC8YiacX3qzsyP0Lj4ayzSnGmw@mail.gmail.com>

On Thu, Apr 08, 2021 at 12:08:02PM +0530, Amit Kapila wrote:
> On Thu, Apr 8, 2021 at 11:40 AM Julien Rouhaud <rjuju123@gmail.com> wrote:
> >
> > That was indeed the problem.  I think the best is to entirely ignore parallel
> > workers in pg_stat_statements,
> >
> 
> I haven't studied this patch but I have a question here. We normally
> do accumulate the stats from parallel workers for the purpose of
> Explain Analyze, so won't ignoring them in pg_stat_statements a bit
> inconsistent but if that is the case even before this patch then that
> might be fine?

I think that this patch shouldn't change pg_stat_statements previous behavior,
and that the previous behavior was correct.

It doesn't change the way we get instrumentation data from parallel workers,
just avoid to have parallel workers call pgss_store and report multiple time
the same activity.  The only difference is that now pg_stat_statements won't
setup instrumentation flags, but those should be inherited in parallel worker
from the main process right?





view thread (12+ messages)  latest in thread

Message-ID: <20210408064919.bxqnzpi2ctt3rfzg@nol>
Permalink:  ../20210408064919.bxqnzpi2ctt3rfzg@nol/
Also on:    postgresql.org/message-id/20210408064919.bxqnzpi2ctt3rfzg@nol

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: rjuju123@gmail.com, amit.kapila16@gmail.com, andres@anarazel.de, bruce@momjian.us
  Subject: Re: pgsql: Move pg_stat_statements query jumbling to core.
  In-Reply-To: <20210408064919.bxqnzpi2ctt3rfzg@nol>
  References: <E1lUBdr-0000k6-N8@gemulon.postgresql.org> <20210408051735.lfbdzun5zdlax5gd@alap3.anarazel.de> <CAOBaU_aOr8LRyzmgnq78Qp9oJup9TQ3i67STLYfBJDGu3tYvjw@mail.gmail.com> <20210408061102.xripofnfvqt7qcrg@nol> <CAA4eK1KbQp3-H2wFELhC40txvC8YiacX3qzsyP0Lj4ayzSnGmw@mail.gmail.com> <20210408064919.bxqnzpi2ctt3rfzg@nol>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox