Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ce3qT-0000iB-H1 for pgsql-bugs@arkaria.postgresql.org; Wed, 15 Feb 2017 17:58:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ce3qT-00082t-3t for pgsql-bugs@arkaria.postgresql.org; Wed, 15 Feb 2017 17:58:25 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ce3qS-00080O-0p for pgsql-bugs@postgresql.org; Wed, 15 Feb 2017 17:58:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ce3qP-0000fU-1O for pgsql-bugs@postgresql.org; Wed, 15 Feb 2017 17:58:23 +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 v1FHwIqS018268; Wed, 15 Feb 2017 12:58:18 -0500 From: Tom Lane To: Peter Geoghegan cc: Hari Sankar A , pgsql-bugs@postgresql.org Subject: Re: Problem with PostgreSQL string sorting In-reply-to: References: <16285.1487178313@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Wed, 15 Feb 2017 09:14:22 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18266.1487181498.1@sss.pgh.pa.us> Date: Wed, 15 Feb 2017 12:58:18 -0500 Message-ID: <18267.1487181498@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: > On Wed, Feb 15, 2017 at 9:05 AM, Tom Lane wrote: >> I believe most versions of libc use declarative specifications of locale >> properties, so if you wanted to spend some time learning the language in >> which those are written, you could make and install a locale that acts >> like you want. It's possible there's one out there already, because >> a lot of people seem to want that. > True. And, the declarative language glibc uses doesn't look that > complicated to me. However, you'd really have to vendor your own glibc > to make this work, since they are compiled to some binary > representation when glibc is built. That's probably prohibitively > complicated to manage. Really? "man localedef" certainly gives the impression that you can just compile some more locales if you want. Admittedly, your system's package manager might have a hissy fit about nonstandard files suddenly appearing in /usr/lib/locale, but that's not glibc's fault. 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