Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdg5y-0000K4-9s for pgsql-general@arkaria.postgresql.org; Thu, 12 Jul 2018 18:13:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fdg5w-0008Np-On for pgsql-general@arkaria.postgresql.org; Thu, 12 Jul 2018 18:13:36 +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 1fdg5w-0008Ni-Db for pgsql-general@lists.postgresql.org; Thu, 12 Jul 2018 18:13:36 +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 1fdg5t-0007ur-Sf for pgsql-general@postgresql.org; Thu, 12 Jul 2018 18:13:35 +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 w6CIDU36013895; Thu, 12 Jul 2018 14:13:30 -0400 From: Tom Lane To: Tom van Tilburg cc: pgsql-general@postgresql.org Subject: Re: Postgres sometimes stalling on 'percentile_cont' In-reply-to: References: <66447.1530720113@sss.pgh.pa.us> Comments: In-reply-to Tom van Tilburg message dated "Thu, 05 Jul 2018 14:44:31 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13893.1531419210.1@sss.pgh.pa.us> Date: Thu, 12 Jul 2018 14:13:30 -0400 Message-ID: <13894.1531419210@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tom van Tilburg writes: > Problem is that the query is not slow, it just stalls and never finishes ( > I waited several hours for a 2 seconds query). Would it still be possible > to derive an EXPLAIN ANALYZE from it in that case? No, not really, but it'd be sufficient to compare EXPLAIN (without ANALYZE) output for the slow and fast cases. What I'm wondering about is whether the shape of the plan changes. regards, tom lane