Re: Parallel query and number of connections.

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Alessandro Aste <alessandro(dot)aste(at)gmail(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Parallel query and number of connections.
Date: 2018-11-21 23:54:32
Message-ID: da8add8c-809d-3058-dbf2-1fb75303d319@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message ramsiddu007 2018-11-22 06:21:51 Empty Range Bound Specified for Partition
Previous Message Rene Romero Benavides 2018-11-21 19:20:25 Re: replication lag despite corrective config