Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZLbbe-0006mj-Jz for pgsql-bugs@arkaria.postgresql.org; Sat, 01 Aug 2015 18:34:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZLbbe-0007ms-69 for pgsql-bugs@arkaria.postgresql.org; Sat, 01 Aug 2015 18:34:02 +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 1ZLbbd-0007m9-CS for pgsql-bugs@postgresql.org; Sat, 01 Aug 2015 18:34:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZLbbZ-0002oI-Pw for pgsql-bugs@postgresql.org; Sat, 01 Aug 2015 18:34:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t71IXohA008853; Sat, 1 Aug 2015 14:33:51 -0400 From: Tom Lane To: "Peter J. Holzer" cc: pgsql-bugs@postgresql.org Subject: Re: 9.5alpha1: Partial index not used In-reply-to: <20150801160429.GA18043@hjp.at> References: <20150731173213.GB2423@hjp.at> <13924.1438387421@sss.pgh.pa.us> <20150801160429.GA18043@hjp.at> Comments: In-reply-to "Peter J. Holzer" message dated "Sat, 01 Aug 2015 18:04:30 +0200" Date: Sat, 01 Aug 2015 14:33:50 -0400 Message-ID: <8852.1438454030@sss.pgh.pa.us> X-Pg-Spam-Score: -3.0 (---) 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 "Peter J. Holzer" writes: > On 2015-07-31 20:03:41 -0400, Tom Lane wrote: >> Only the last case produces use of the index. I agree that it'd be better >> if they all did, but I'm disinclined to consider it a bug fix unless you >> can show a specific case in which there's a performance regression from >> older releases. > "grossly incorrect plan choices are cause for a bug report" (from > http://www.postgresql.org/docs/9.5/static/indexes-partial.html) ;-) Sorry, I phrased that poorly. I meant that I'm disinclined to change this behavior in stable branches unless it's a regression. I agree that it's reasonable to fix it in 9.5/HEAD, and I've now done so. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs