Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XUyof-0005Mu-Sq for pgsql-bugs@arkaria.postgresql.org; Fri, 19 Sep 2014 14:05:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XUyoe-0005eA-QK for pgsql-bugs@arkaria.postgresql.org; Fri, 19 Sep 2014 14:05:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XUyoe-0005dx-2r for pgsql-bugs@postgresql.org; Fri, 19 Sep 2014 14:05:40 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XUyoW-0007dz-JY for pgsql-bugs@postgresql.org; Fri, 19 Sep 2014 14:05:38 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XUyoV-0001tm-3f for pgsql-bugs@postgresql.org; Fri, 19 Sep 2014 07:05:31 -0700 Date: Fri, 19 Sep 2014 07:05:31 -0700 (PDT) From: David G Johnston To: pgsql-bugs@postgresql.org Message-ID: <1411135531089-5819658.post@n5.nabble.com> In-Reply-To: <20140919.171544.140857218.horiguchi.kyotaro@lab.ntt.co.jp> References: <20140917055723.2495.99190@wrigleys.postgresql.org> <20140919.171544.140857218.horiguchi.kyotaro@lab.ntt.co.jp> Subject: Re: BUG #11441: Weird (and seems wrong) behavior of partial indexes with order by/limit 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-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Kyotaro HORIGUCHI-2 wrote > Hello, I think this is a behavior as desinged. It may not technically be a bug but it definitely could use some TLC from Tom Lane. I'm curious, but too busy to check myself, how these three queries would perform with the index columns placed in reverse order. Then create a summary post with the 3 queries x 2 indexes, and the plan summaries (not the entire explain) would let someone quickly see the end result without sifting through 3 posts and lots of explanation. Also, can you test on 9.3 and/or 9.4? Someone knowledgable may know outright but otherwise this may have been recently improved and, because it is not really a bug, not back-patched. Release notes should indicate this but testing is more accurate. David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-11441-Weird-and-seems-wrong-behavior-of-partial-indexes-with-order-by-limit-tp5819400p5819658.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