Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aiVhZ-0004k2-Be for pgsql-bugs@arkaria.postgresql.org; Tue, 22 Mar 2016 23:27:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aiVhY-0001Zs-UQ for pgsql-bugs@arkaria.postgresql.org; Tue, 22 Mar 2016 23:27:04 +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.84_2) (envelope-from ) id 1aiVgv-0000qj-Mm for pgsql-bugs@postgresql.org; Tue, 22 Mar 2016 23:26:25 +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.84_2) (envelope-from ) id 1aiVgp-0007zq-B8 for pgsql-bugs@postgresql.org; Tue, 22 Mar 2016 23:26:24 +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 u2MNQF15019683; Tue, 22 Mar 2016 19:26:15 -0400 From: Tom Lane To: Peter Geoghegan cc: Robert Haas , Marc-Olaf Jaschke , Postgres-Bugs Subject: Re: Missing rows with index scan when collation is not "C" (PostgreSQL 9.5) In-reply-to: References: <111D0E27-A8F3-4A84-A4E0-B0FB703863DF@s24.com> <9688.1458605021@sss.pgh.pa.us> <16214.1458615257@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Tue, 22 Mar 2016 14:09:52 -0700" Date: Tue, 22 Mar 2016 19:26:15 -0400 Message-ID: <19682.1458689175@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 Peter Geoghegan writes: > I now think that we have this backwards: This isn't a bug in glibc's > strxfrm(); it's a bug in glibc's strcoll(). FWIW, the test program I just posted includes checks to see if the two cases produce self-consistent sort orders. So far I've seen no evidence that they don't; that is, strcoll() produces a consistent sort order, and strxfrm() produces a consistent sort order, but not the same one. That being the case, arguing about which one is wrong seems a bit academic, not to mention well above my pay grade so far as the theoretical behavior of locale-specific sort ordering is concerned. 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