Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1F30-0005h0-Ga for pgsql-general@arkaria.postgresql.org; Tue, 05 Mar 2019 18:44:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h1F2z-0007se-6p for pgsql-general@arkaria.postgresql.org; Tue, 05 Mar 2019 18:44:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1F2y-0007sX-RQ for pgsql-general@lists.postgresql.org; Tue, 05 Mar 2019 18:44:12 +0000 Received: from mail.i-mark.de ([188.138.104.222]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1F2v-0002GL-Ga for pgsql-general@lists.postgresql.org; Tue, 05 Mar 2019 18:44:11 +0000 Received: from [192.168.178.20] (unknown [185.38.49.17]) by mail.i-mark.de (Postfix) with ESMTPSA id 3728B15805C0 for ; Tue, 5 Mar 2019 19:44:02 +0100 (CET) Authentication-Results: loft7616.startdedicated.de; spf=pass (sender IP is 185.38.49.17) smtp.mailfrom=andreas@a-kretschmer.de smtp.helo=[192.168.178.20] Received-SPF: pass (loft7616.startdedicated.de: connection is authenticated) Subject: Re: LIMIT not showing all results To: pgsql-general@lists.postgresql.org References: <85CFAA9E-E10B-4B1E-8C79-7793CC92BA82@deccio.net> <2AA9443B-57B7-4088-8B8F-957703E206F0@deccio.net> <2871.1551804378@sss.pgh.pa.us> <5188DC9C-9665-41E8-8B04-B016527321C4@deccio.net> From: Andreas Kretschmer Message-ID: Date: Tue, 5 Mar 2019 19:44:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <5188DC9C-9665-41E8-8B04-B016527321C4@deccio.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Am 05.03.19 um 19:41 schrieb Casey Deccio: > >> On Mar 5, 2019, at 10:37 AM, Andreas Kretschmer >> > wrote: >> >> no, but you can set enable_indexscan to off and maybe also >> enable_bitmapscan to off to force the planner to choose a seq-scan. >> I'm sure in this case you will get a correct result. > > So this (setting enable_indexscan to off) might be a short-term fix, > while reindexing is the more robust fix? > yes, sure. The index is corrupt. Regards, Andreas -- 2ndQuadrant - The PostgreSQL Support Company. www.2ndQuadrant.com