Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTvFO-00005K-RD for pgsql-committers@arkaria.postgresql.org; Wed, 18 Jan 2017 18:46:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cTvFO-0005so-Dw for pgsql-committers@arkaria.postgresql.org; Wed, 18 Jan 2017 18:46:14 +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 1cTvFO-0005sh-3P for pgsql-committers@postgresql.org; Wed, 18 Jan 2017 18:46:14 +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 1cTvFJ-0005If-9k for pgsql-committers@postgresql.org; Wed, 18 Jan 2017 18:46:12 +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 v0IIk3vn002821; Wed, 18 Jan 2017 13:46:03 -0500 From: Tom Lane To: Peter Eisentraut cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Add function to import operating system collations In-reply-to: <19773.1484761021@sss.pgh.pa.us> References: <26116.1484751196@sss.pgh.pa.us> <2083.1484754187@sss.pgh.pa.us> <9b99c8c5-5a77-f1ae-6d90-bef0e85552a0@2ndquadrant.com> <19773.1484761021@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 18 Jan 2017 12:37:01 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2819.1484765163.1@sss.pgh.pa.us> Date: Wed, 18 Jan 2017 13:46:03 -0500 Message-ID: <2820.1484765163@sss.pgh.pa.us> X-Pg-Spam-Score: -5.1 (-----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org I wrote: > The previous coding applied a sort so as not to depend on what > order "locale -a" had returned things in, and I think we need > to retain that. At the very least, all the normalized names > need to be saved up and entered in a second pass. Actually, it seems like doing precisely that should be enough to fix it. The original names shouldn't have any dups, and if we generate dup names by stripping, those will be for different encodings so it's OK. I've pushed a fix based on that. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers