Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aulev-0006ip-CT for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Apr 2016 18:55:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1auleu-00057k-V7 for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Apr 2016 18:55:01 +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_2) (envelope-from ) id 1auleu-00055y-0E for pgsql-bugs@postgresql.org; Mon, 25 Apr 2016 18:55:00 +0000 Received: from mbob.nabble.com ([162.253.133.15]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1auleq-0000WB-Dx for pgsql-bugs@postgresql.org; Mon, 25 Apr 2016 18:54:59 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mbob.nabble.com (Postfix) with ESMTP id 7A0142620766 for ; Mon, 25 Apr 2016 11:40:48 -0700 (PDT) Date: Mon, 25 Apr 2016 11:54:53 -0700 (MST) From: Yaroslav To: pgsql-bugs@postgresql.org Message-ID: <1461610493986-5900430.post@n5.nabble.com> In-Reply-To: <3ac6f379-08f8-d1db-639f-2dc3075d2eb4@gmail.com> References: <20160421115638.22895.78902@wrigleys.postgresql.org> <69e376c7-6c2c-c96d-2ad6-3734affb59b7@gmail.com> <44df2e58-87f5-282c-9871-c735240c55e4@gmail.com> <1461406942121-5900147.post@n5.nabble.com> <3ac6f379-08f8-d1db-639f-2dc3075d2eb4@gmail.com> Subject: Re: BUG #14107: Major query planner bug regarding subqueries and indices MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.2 (-) 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 > Yes, but the problem seems to be even bigger. Seems like it. I've asked folks on IRC for help, and it was confirmed the bug exists since 8.2, at least: https://gist.github.com/ilmari/b8ae0c37a7465d6fb3987dc651923660 Also, I've created sqlfiddle based on your example: http://sqlfiddle.com/#!15/76ef4/3 ----- WBR, Yaroslav Schekin. -- View this message in context: http://postgresql.nabble.com/BUG-14107-Major-query-planner-bug-regarding-subqueries-and-indices-tp5899873p5900430.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs