Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWVkf-0000rI-I1 for pgsql-performance@arkaria.postgresql.org; Mon, 31 Aug 2015 20:32:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZWVkf-0001zO-4f for pgsql-performance@arkaria.postgresql.org; Mon, 31 Aug 2015 20:32:25 +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) (envelope-from ) id 1ZWVj3-0008UF-9f for pgsql-performance@postgresql.org; Mon, 31 Aug 2015 20:30:45 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZWVj0-0000wH-Np for pgsql-performance@postgresql.org; Mon, 31 Aug 2015 20:30:44 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id ED9CB146DB48 for ; Mon, 31 Aug 2015 13:27:43 -0700 (PDT) Date: Mon, 31 Aug 2015 13:30:41 -0700 (MST) From: twoflower To: pgsql-performance@postgresql.org Message-ID: <1441053041230-5864101.post@n5.nabble.com> In-Reply-To: References: <1441037351126-5864045.post@n5.nabble.com> <55E47E97.1090202@2ndquadrant.com> <1441047830983-5864075.post@n5.nabble.com> <1441048763332-5864080.post@n5.nabble.com> <1441050416677-5864088.post@n5.nabble.com> Subject: =?UTF-8?Q?Re:__Re:_Query_>_1000=C3=97_slow?= =?UTF-8?Q?down_after_adding_datetime_comparison?= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) 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 I did not. I wanted to compare this query to the one I tried before, having *documenttype = 4* as the sole condition. That one was very fast and the *documenttype* was not indexed either. But this query, using the new temporary column, still runs, after 48 minutes... -- View this message in context: http://postgresql.nabble.com/Query-1-000-000-slowdown-after-adding-datetime-comparison-tp5864045p5864101.html Sent from the PostgreSQL - performance mailing list archive at Nabble.com. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance