Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fC4n2-0000cw-D3 for pgsql-general@arkaria.postgresql.org; Fri, 27 Apr 2018 14:56:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fC4n1-0001lQ-6B for pgsql-general@arkaria.postgresql.org; Fri, 27 Apr 2018 14:55:59 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fC4n0-0001lH-QZ for pgsql-general@lists.postgresql.org; Fri, 27 Apr 2018 14:55:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fC4mx-0004Yc-HO for pgsql-general@lists.postgresql.org; Fri, 27 Apr 2018 14:55:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w3REtrT2024777 for ; Fri, 27 Apr 2018 10:55:53 -0400 From: Tom Lane To: pgsql-general@lists.postgresql.org Subject: Re: Locks analysis after-the-fact In-reply-to: <5328601524823082@web57j.yandex.ru> References: <2CAED52C-B4CA-4335-BDCA-0A71B82BDF1F@wingo.ch> <5328601524823082@web57j.yandex.ru> Comments: In-reply-to Olleg Samoylov message dated "Fri, 27 Apr 2018 12:58:02 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24775.1524840953.1@sss.pgh.pa.us> Date: Fri, 27 Apr 2018 10:55:53 -0400 Message-ID: <24776.1524840953@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Olleg Samoylov writes: > On 2018-04-27 10:55, Olivier Macchioni wrote: >> Does anyone have an idea on how to process in such a case? > Log statments too. :) Another idea is to get the app to set application_name differently for each session (and be sure to include %a in log_line_prefix). It might not be practical in this particular case, but it's a good tool to keep in mind. regards, tom lane