Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfdpZ-00006g-LI for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Apr 2014 23:22:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WfdpZ-0001zh-0Z for pgsql-bugs@arkaria.postgresql.org; Wed, 30 Apr 2014 23:22:25 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfdpX-0001za-Tv for pgsql-bugs@postgresql.org; Wed, 30 Apr 2014 23:22:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WfdpV-0007Fp-A7 for pgsql-bugs@postgresql.org; Wed, 30 Apr 2014 23:22:23 +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 s3UNMJXr009897; Wed, 30 Apr 2014 19:22:19 -0400 From: Tom Lane To: nickr@mirth.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #10189: Limit in 9.3.4 no longer works when ordering using a composite multi-type index In-reply-to: <20140430214055.1395.15117@wrigleys.postgresql.org> References: <20140430214055.1395.15117@wrigleys.postgresql.org> Comments: In-reply-to nickr@mirth.com message dated "Wed, 30 Apr 2014 21:40:55 -0000" Date: Wed, 30 Apr 2014 19:22:19 -0400 Message-ID: <9896.1398900139@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) 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 nickr@mirth.com writes: > It would appear that when you order on a column such that the query plan > scans across a composite, multi-type index (say, bigint and integer), and > the plan runs through an Index Cond, doing all that AND a LIMIT clause no > longer works. And by "no longer works" I mean the query does not return any > results when it should. I failed to reproduce any such problem in a little bit of trying. Can you create a self-contained test case? The symptoms seem consistent with the theory that that index is corrupt ... have you tried REINDEXing it? 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