Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Xbkq9-0003nO-Ff for pgsql-performance@arkaria.postgresql.org; Wed, 08 Oct 2014 06:35:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Xbkq8-0003d8-E9 for pgsql-performance@arkaria.postgresql.org; Wed, 08 Oct 2014 06:35:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Xbkq6-0003cI-UE for pgsql-performance@postgresql.org; Wed, 08 Oct 2014 06:35:10 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Xbkq2-0007wS-4P for pgsql-performance@postgresql.org; Wed, 08 Oct 2014 06:35:09 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Xbkpy-0007Pv-EZ for pgsql-performance@postgresql.org; Tue, 07 Oct 2014 23:35:02 -0700 Date: Tue, 7 Oct 2014 23:35:02 -0700 (PDT) From: and To: pgsql-performance@postgresql.org Message-ID: <1412750102410-5822190.post@n5.nabble.com> Subject: Bad optimization/planning on Postgres window-based queries (partition by(, group by?)) - 1000x speedup MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.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 see http://stackoverflow.com/questions/26237463/bad-optimization-planning-on-postgres-window-based-queries-partition-by-group for details -- View this message in context: http://postgresql.1045698.n5.nabble.com/Bad-optimization-planning-on-Postgres-window-based-queries-partition-by-group-by-1000x-speedup-tp5822190.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