Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhH6o-00046k-GU for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Aug 2017 15:16:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dhH6n-0007cP-Sr for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Aug 2017 15:16:49 +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 1dhH66-0006Ny-SV for pgsql-bugs@postgresql.org; Mon, 14 Aug 2017 15:16:06 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dhH63-0001W2-8j for pgsql-bugs@postgresql.org; Mon, 14 Aug 2017 15:16:06 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 224FF20BB8; Mon, 14 Aug 2017 11:16:02 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Mon, 14 Aug 2017 11:16:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; 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= fm1; bh=GzsmIUHY7/S2906PW/Ba2xpvGGVAMVM/TkPL0rJGHsk=; b=dUmPurLD iA9Q8Btz2pvsKpndw3it5lmEMXZev3On/jWToHtHhFOvZr0+JTq0MEsIwq42e/7Q pltb9HZeMv2mHLzRlv8QEq9qCXVm9EQWmM9lN9ZyHD0NdJgj1psN7952fRGz6z3U PzoIkS+GVXfmoortk10KhDTVEhufEJJJh92kLeGTsVKEL4/keJ1DKWzqdymi3t8w 2CmXdGldux8jJNH9ggi2GDPnnRScMwsR8aiIy2wfmi4hQ/fvNhmOxuAUekqD9JFo qRGH8bEuzH8TxtPSkPUGbkq2icljxKVne24CV1wp3Fp4aL7enTVoeeytjDRAeuBE /JN/+Q88xFLlAg== X-ME-Sender: X-Sasl-enc: S1rULoTeQIUPzCJfgHq/PKzmpGIJG3kqfTdgukHOUMsW 1502723761 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 3091924442; Mon, 14 Aug 2017 11:16:01 -0400 (EDT) Subject: Re: Crash report for some ICU-52 (debian8) COLLATE and work_mem values To: Tom Lane , Peter Geoghegan References: <57860965-169f-461b-81f0-60d398894938@manitou-mail.org> <10186.1501989988@sss.pgh.pa.us> <1b0681a0-83d6-4cce-cf6d-f90cfe3b2069@2ndquadrant.com> <32388.1502127050@sss.pgh.pa.us> <10910.1502302068@sss.pgh.pa.us> Cc: Robert Haas , Daniel Verite , PostgreSQL mailing lists From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Mon, 14 Aug 2017 11:16:00 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <10910.1502302068@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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 On 8/9/17 14:07, Tom Lane wrote: > Actually, I don't think that's the issue at all. People are free to > make other ICU collations if they want to. My point is that we should > encourage them to do that, rather than depend on initdb-provided > collations, because manually-created collations are much more certain > to move across version upgrades safely. If we were sure that > pg_import_system_collations would produce pretty much the same set of > collation names with future ICU releases as it does with current ones, > then there would be no issue --- but the evidence at hand suggests the > opposite. I want to do something to address that stability issue before > it comes back to bite us. I understand this concern, but I don't know how to solve it. Any string (more or less), is valid as an ICU locale name. In order to create some initial collations, we ask ICU, give me a list of distinct locales with their canonical names. That's the list we use. The next version of ICU gives us a different list. There is no way to tell the API, no, I meant the list you gave me last time. The only way to solve that problem directly is to preload no locales. Even the idea of maintaining a list of locales by hand cannot guarantee that things won't go away in the future. I think it is better in the long run that we acknowledge that the list of preloaded collations will change (it already happens with glibc), and we develop some guidance on how to deal with that. As mentioned in another message, I don't foresee a fully automatic solution, however. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs