Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7KUY-0003F9-I4 for pgsql-performance@arkaria.postgresql.org; Thu, 17 Nov 2016 11:04:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c7KUY-0005PE-3P for pgsql-performance@arkaria.postgresql.org; Thu, 17 Nov 2016 11:04:30 +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.84_2) (envelope-from ) id 1c7KSs-00039Y-Ib for pgsql-performance@postgresql.org; Thu, 17 Nov 2016 11:02:46 +0000 Received: from mail.mnc.ch ([62.2.77.205]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c7KSp-0000lH-SR for pgsql-performance@postgresql.org; Thu, 17 Nov 2016 11:02:45 +0000 X-Virus-Scanned: amavisd-new at mnc.ch Received: by lmeuh2.localdomain (Postfix, from userid 500) id 136EA280BA2; Thu, 17 Nov 2016 12:02:35 +0100 (CET) From: Guillaume Cottenceau To: Metatrader EA Cc: pgsql-performance@postgresql.org Subject: Re: Query hangs sometimes References: Date: Thu, 17 Nov 2016 12:02:34 +0100 In-Reply-To: (Metatrader EA's message of "Thu, 17 Nov 2016 11:43:19 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -4.8 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Locks? (VACUUM FULL, etc) Autovacuum? > Hi, > > I run this query select count(*) from analyse_forecast where daterange_analyse  > <@ daterange( current_date - 150, current_date, '[]') ; > > Sometimes will query be quick and sometimes is same query SUPER SLOWWWW > > Something I can do ? Something I can check for ? > > //Bill > -- Guillaume Cottenceau -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance