Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cTvLq-0000QJ-Kf for pgsql-committers@arkaria.postgresql.org; Wed, 18 Jan 2017 18:52:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cTvLq-0006Zh-1O for pgsql-committers@arkaria.postgresql.org; Wed, 18 Jan 2017 18:52:54 +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 1cTvLc-0006KM-A3 for pgsql-committers@postgresql.org; Wed, 18 Jan 2017 18:52:40 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cTvLV-0005Pu-4n for pgsql-committers@postgresql.org; Wed, 18 Jan 2017 18:52:38 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id C82D220770; Wed, 18 Jan 2017 13:52:31 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Wed, 18 Jan 2017 13:52:31 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=dJaQWsw0SQUJ6fQ8r61upKy9U9c=; b=FxQiV8Q11tR/dBzL5GF1 yWY4LmtwyQing/qG/MxQCf6OurBFB9hErxZxDO7Ti1npTVW4ASnmAg0rpR6LfZGi HZs4RLxWovBjEkcX8kO4ST8fXqamYuxJEojYa3Hf/rAvmH9o2FqsSSkLaOwI/2sH cPFwwKWG5z29zNgldYc/HxQ= X-ME-Sender: X-Sasl-enc: K6MpBi75DEIKAL2GdFTXQxGl5ytSgLpV7npEH0sB8Vfd 1484765551 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 87FDE2438A; Wed, 18 Jan 2017 13:52:31 -0500 (EST) Subject: Re: pgsql: Add function to import operating system collations To: Tom Lane 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> <2820.1484765163@sss.pgh.pa.us> Cc: pgsql-committers@postgresql.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <57d99bf7-abaa-16bb-7ea8-1ca019c4caf6@2ndquadrant.com> Date: Wed, 18 Jan 2017 13:52:31 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <2820.1484765163@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 On 1/18/17 1:46 PM, Tom Lane wrote: > 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. Yeah, I was just about to write the exact same code. Looks good, thanks. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers