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 1iDyLc-0005Rg-1C for pgsql-general@arkaria.postgresql.org; Fri, 27 Sep 2019 22:04:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iDyLa-0001l0-TA for pgsql-general@arkaria.postgresql.org; Fri, 27 Sep 2019 22:04:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDyLa-0001iJ-FC for pgsql-general@lists.postgresql.org; Fri, 27 Sep 2019 22:04:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iDyLY-0002Uo-EP for pgsql-general@postgresql.org; Fri, 27 Sep 2019 22:04:17 +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 x8RM4FXT024498; Fri, 27 Sep 2019 18:04:15 -0400 From: Tom Lane To: PegoraroF10 cc: pgsql-general@postgresql.org Subject: Re: steps of a sql In-reply-to: <1569620584962-0.post@n3.nabble.com> References: <1569620584962-0.post@n3.nabble.com> Comments: In-reply-to PegoraroF10 message dated "Fri, 27 Sep 2019 14:43:04 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <24496.1569621855.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Fri, 27 Sep 2019 18:04:15 -0400 Message-ID: <24497.1569621855@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk PegoraroF10 writes: > Some days ago one of my customers claimed that one of his queries were > spending too much time. Then on postgres log it appears really strange. That > query doesn´t usually appears as parse, sometimes only as execute, because > it tooks almost all times less than 500ms. But on that day something > happened, what was that, PARSE time of 10 minutes ? Something else sitting on an exclusive table lock, perhaps? regards, tom lane