Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gPcKU-0002Qi-Hc for pgsql-general@arkaria.postgresql.org; Wed, 21 Nov 2018 23:54:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gPcKT-0005gx-49 for pgsql-general@arkaria.postgresql.org; Wed, 21 Nov 2018 23:54:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gPcKS-0005gq-7e for pgsql-general@lists.postgresql.org; Wed, 21 Nov 2018 23:54:44 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gPcKK-00081B-AS for pgsql-general@lists.postgresql.org; Wed, 21 Nov 2018 23:54:43 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E8BA321CCA; Wed, 21 Nov 2018 18:54:34 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 21 Nov 2018 18:54:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=W Gxw5sdJFzoY7oGAXyHD6IaArPF16vTarMARTbIwS8c=; b=4IsrZFkcnKZkjevsQ 3yLxhIgCo9+V8lByzj4f9OXGrH8QtGD4ZKTDx4QQ9kS+Ah7Pzdj4seRK4UtTJZ3W ZSWoLFCRu4KW1aETMEmqtziKUaLLUDf2SY0i0jESjfFK8ZSzKZOQMjbzCYqImsd6 PMT6O27cDFOBS1OCR07t/dmiBShnpSKZnWei93YdHP18StcO3D4rJLLciLDdvt9N b+mxdbI+W2DVeMg544WkuTf/BGucFWahGrz+Mph7qSTrUClGPryDNPdz/oJQur4E FO9yxJMfFBbS+xlpCK1ewnIqula2/v5zT4IrCUanSD31s4wZlL8ip0pcOExwNlmx VtabA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=WGxw5sdJFzoY7oGAXyHD6IaArPF16vTarMARTbIwS 8c=; b=H7bffWAyW6IaDoIneGxh1Qlb1ABzpT5RFctszMh1/9/q7NomjNy6goJma KCNx88KtErNKLG2aoN7W+kf6bD8TArfn+uKTZ/Vxusk5jW2ryi9w4/Zy92vtFWPf yoOEkZAnIlbuHcg/mpWUC9CZmQe7DZX91e4LXquYLCXVbU3MHxYIoG0IPOf0bN1e zXYr0sXxsksYkPnoA/SSojFFwJCbWVRrz852m1VFy+ccwr8Jcwwt1sDxVZMD5REH fuU2kVoQIw4HS6kWJtzNrr5UZqDOfa1zPReNeny66dNnUFzq6gSfEQqT0tDKDPj0 KyorZ+bpzJGW7oTKLWvZ2CJnsNzSQ== X-ME-Sender: X-ME-Proxy: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 18124102E0; Wed, 21 Nov 2018 18:54:34 -0500 (EST) Subject: Re: Parallel query and number of connections. To: Alessandro Aste , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: Date: Wed, 21 Nov 2018 15:54:32 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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