Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFHC5-0001RR-8p for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Sep 2020 13:28:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kFHBY-0005OC-N5 for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Sep 2020 13:27:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFHBY-0005Mc-8S for pgsql-bugs@lists.postgresql.org; Mon, 07 Sep 2020 13:27:52 +0000 Received: from mail.dalibo.com ([212.85.157.172]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFHBP-0002gJ-02 for pgsql-bugs@lists.postgresql.org; Mon, 07 Sep 2020 13:27:49 +0000 Received: from firost (larco.ioguix.net [82.66.0.6]) by mail.dalibo.com (Postfix) with ESMTPSA id 36808203EC; Mon, 7 Sep 2020 15:27:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1599485260; bh=qIKlfYCcX9yUb90MN+HJuce8Hb2rFB9buBXWQDFCr/A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=SuJbUJO1zGUtf47bcMHpXZ2Zn/Hpin2nu3EtDFHkGOV7aQ6tCL0wuonHKUvR2AJN8 SHKAo8SuDSy7Vj/NUp07F2DB6sRTMy1NGF8Bcs2RNMHyFWwQHBIUDAPEQqlWNUZ1i/ IuI/ooepYmPEdMO7F88kkNQRrPpBsMVpelguXMPU= Date: Mon, 7 Sep 2020 15:27:39 +0200 From: Jehan-Guillaume de Rorthais To: pgsql-bugs@lists.postgresql.org Cc: Daniel Verite , Thomas Munro , Peter Geoghegan , Tom Lane Subject: Re: BUG #15285: Query used index over field with ICU collation in some cases wrongly return 0 rows Message-ID: <20200907152739.0fd6a12a@firost> In-Reply-To: References: <20200903105727.064665ce@firost> Organization: Dalibo MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/cTfbODKbZFokG1rXNgr9mbD" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --MP_/cTfbODKbZFokG1rXNgr9mbD Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thu, 03 Sep 2020 13:49:24 -0400 Tom Lane wrote: > =?UTF-8?Q?=D0=BE=D0=B2=D1=87=D0=B5=D0=BD=D0=BA=D0=BE" ?= > , > "PostgreSQL mailing lists" > Subject: Re: BUG #15285: Query used index over field with ICU collation in > some cases wrongly return 0 rows In-reply-to: > References: > Comments: In-reply-to > "Daniel Verite" message dated "Thu, 03 Sep 2020 > 11:29:15 +0200" Fcc: inbox > -------- Something broke in this answer, so I try to hook it back to the appropriate thread. > "Daniel Verite" writes: > > Now that we know that this collation is problematic, we could remove > > this example, even if we don't want to go as far as documenting > > ICU bugs. In fact bug reports used the same name "digitslast", so > > I wonder if people tried this straight from our doc. > > If we aren't going to try to work around the bug, I agree that > removing that example (or replacing it with a less buggy one?) > is a good idea. OK. Please, find a patch in attachment. It removes the buggy collation from doc and adapt existing ones to keep an example of combination of rules. > I tend to agree with Peter that trying to work around a bug that > isn't ours and that we don't fully understand is not going to > be very productive. What is the argument, other than observation > of a small number of test cases, that these other subroutines > don't have bugs of their own? What about adding it as a "known bug"/"will not fix" in https://wiki.postgresql.org/wiki/Todo and link it from the doc in a note bloc? I strongly feel most user do not know where to find such list of bugs in PostgreSQL ecosystem. Regards, --MP_/cTfbODKbZFokG1rXNgr9mbD Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=v1-0001-doc-remove-buggy-ICU-collation-from-documentation.patch