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 1hdxfe-0005Dc-2P for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Jun 2019 14:04:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hdxfc-0006Tg-Cn for pgsql-bugs@arkaria.postgresql.org; Thu, 20 Jun 2019 14:04:08 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hdxRE-0000PJ-3m for pgsql-bugs@lists.postgresql.org; Thu, 20 Jun 2019 13:49:16 +0000 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hdxRB-0006W2-6U for pgsql-bugs@lists.postgresql.org; Thu, 20 Jun 2019 13:49:15 +0000 X-Originating-IP: 207.55.44.45 Received: from [10.0.1.108] (unknown [207.55.44.45]) (Authenticated sender: rj@rjewing.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 32F0E240014; Thu, 20 Jun 2019 13:49:03 +0000 (UTC) Date: Thu, 20 Jun 2019 06:48:17 -0700 From: RJ Ewing To: "=?utf-8?Q?pgsql-bugs=40lists.postgresql.org?=" , Sergei Kornilov Message-ID: In-Reply-To: <7307481561013811@sas2-c434f6e124b6.qloud-c.yandex.net> References: <15861-fed7a8c85fffa2d7@postgresql.org> <7307481561013811@sas2-c434f6e124b6.qloud-c.yandex.net> Subject: Re: BUG #15861: jsonb exists query retuning inconsistent results X-Readdle-Message-ID: d4db87a2-862c-4bb1-a6b1-211d52c77008@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5d0b8ea6_1e7ff521_350c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --5d0b8ea6_1e7ff521_350c Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Ya, that is most likely the issue. I have the gin_fuzzy_search_limit set to 15k. Is there a way around this? Having a search limit of 15k seems reasonable to me when doing a FTS, however I would not want that limit when doing an exists query. Any way to tell the planner to not use the index? Or other alternative? Thanks RJ Ewing On Jun 19, 2019, 11:56 PM -0700, Sergei Kornilov , wrote: > Hello > > Please check your gin_fuzzy_search_limit setting: https://www.postgresql.org/docs/current/gin-tips.html > Seems this setting is in effect. > > regards, Sergei --5d0b8ea6_1e7ff521_350c Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Ya, that is most likely the issue. I have the gin=5F= fuzzy=5Fsearch=5Flimit set to 15k.

Is there a way around this=3F Having a search limit= of 15k seems reasonable to me when doing a =46TS, however I would not wa= nt that limit when doing an exists query. Any way to tell the planner to = not use the index=3F Or other alternative=3F

Thanks

RJ Ewing
On Jun 19, 2019, 11:56 PM -0700, Se= rgei Kornilov <sk=40zsrv.org>, wrote:
He= llo

Please check your gin=5Ffuzzy=5Fsearch=5Flimit setting: https://www.postg= resql.org/docs/current/gin-tips.html
Seems this setting is in effect.

regards, Sergei
--5d0b8ea6_1e7ff521_350c--