Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f89oI-0000Kp-Tu for pgsql-bugs@arkaria.postgresql.org; Mon, 16 Apr 2018 19:29:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f89oF-00010J-PQ for pgsql-bugs@arkaria.postgresql.org; Mon, 16 Apr 2018 19:29:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f89oF-000100-G0 for pgsql-bugs@lists.postgresql.org; Mon, 16 Apr 2018 19:29:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f89oB-0002d7-9r for pgsql-bugs@postgresql.org; Mon, 16 Apr 2018 19:29:01 +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 w3GJSsOM020363; Mon, 16 Apr 2018 15:28:54 -0400 From: Tom Lane To: Peter Geoghegan cc: Emre Hasegeli , Teodor Sigaev , PostgreSQL Bugs Subject: Re: Wrong Results from SP-GiST with Collations In-reply-to: References: <19693.1523904666@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Mon, 16 Apr 2018 12:19:36 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20361.1523906934.1@sss.pgh.pa.us> Date: Mon, 16 Apr 2018 15:28:54 -0400 Message-ID: <20362.1523906934@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Peter Geoghegan writes: > On Mon, Apr 16, 2018 at 11:51 AM, Tom Lane wrote: >> and then the bit below about ... >> needs to move into the "non-collation-aware" branch. > Right. Alternatively, you could actually call varstr_cmp() within the > "non-collation-aware" branch. True. This way saves a few cycles, but maybe it's not worth the extra code. I think the only case where you could really notice the difference is for an equality search operator, which might end up doing a lot more work in non-C collations (full-blown strcoll vs memcmp). regards, tom lane