Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aeCcd-0007RV-7f for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Mar 2016 02:16:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aeCcc-0002Jm-QU for pgsql-bugs@arkaria.postgresql.org; Fri, 11 Mar 2016 02:16:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ae7Y8-0001aA-Mj for pgsql-bugs@postgresql.org; Thu, 10 Mar 2016 20:51:12 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ae7Y0-0005yS-8Z for pgsql-bugs@postgresql.org; Thu, 10 Mar 2016 20:51:11 +0000 MIME-Version: 1.0 Subject: BUG #14015: Query Plan not optimal To: pgsql-bugs@postgresql.org From: jkoceniak@mediamath.com Date: Thu, 10 Mar 2016 20:50:29 +0000 Message-ID: <20160310205029.8904.56087@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 14015 Logged by: Jamie Koceniak Email address: jkoceniak@mediamath.com PostgreSQL version: 9.4.6 Operating system: Linux - Debian Description: One of our queries seems to have reverted back to an old query plan after updating from 9.4.5 to 9.4.6. 9.4.6 execution time: 1045.368 ms 9.4.5 Execution time: 0.276 ms We experienced the same issue with version 9.1 where the index scan is looping too much Bad plan: Index Scan using idx1 on orders (cost=0.29..6.38 rows=11 width=25) (actual time=0.002..0.003 rows=1 loops=103015) -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs