pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Alessandro Aste <alessandro.aste@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Parallel query and number of connections.
Date: Wed, 21 Nov 2018 15:54:32 -0800
Message-ID: <da8add8c-809d-3058-dbf2-1fb75303d319@aklaver.com> (raw)
In-Reply-To: <CAM9F+O2fDbkczoD7b8K-fg9q2bD9B3daWO+TmmBFd82Qm=wTXA@mail.gmail.com>
References: <CAM9F+O2fDbkczoD7b8K-fg9q2bD9B3daWO+TmmBFd82Qm=wTXA@mail.gmail.com>

On 11/21/18 9:45 AM, Alessandro Aste wrote:
> Hi there, we are running postgresql 10.5 on a centos 7 server.
> 
> We're seeing multiple connections (in pg_stat_activity) from our 
> application with the same query , same user, same application_name, same 
> query_start etc.
> 
> We are 100% sure the query is duplicated and not referring to multiple 
> queries issued.
> 
> The only difference is obviosly the pid and client_addr, that is 
> populated in any of the connections but the first one.

client_addr being different would seem to indicate that this is 
something other then parallel query.

> 
> I was wondering if this can be related to the parallel queries of 
> postgresql. Is it supposed to spawn multiple "connections" ?
> 
> Thank you in advance,
> 
> Alessandro.


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (2+ messages)

Message-ID: <da8add8c-809d-3058-dbf2-1fb75303d319@aklaver.com>
Permalink:  ../da8add8c-809d-3058-dbf2-1fb75303d319@aklaver.com/
Also on:    postgresql.org/message-id/da8add8c-809d-3058-dbf2-1fb75303d319@aklaver.com

 · 

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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, alessandro.aste@gmail.com
  Subject: Re: Parallel query and number of connections.
  In-Reply-To: <da8add8c-809d-3058-dbf2-1fb75303d319@aklaver.com>
  References: <CAM9F+O2fDbkczoD7b8K-fg9q2bD9B3daWO+TmmBFd82Qm=wTXA@mail.gmail.com> <da8add8c-809d-3058-dbf2-1fb75303d319@aklaver.com>

* 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