From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Daniel Verite <daniel@manitou-mail.org>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: Crash report for some ICU-52 (debian8) COLLATE and work_mem values
Date: Mon, 14 Aug 2017 11:16:00 -0400
Message-ID: <b14b5efb-5354-63cb-2211-1d1576e063ef@2ndquadrant.com> (raw)
In-Reply-To: <10910.1502302068@sss.pgh.pa.us>
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>
<CA+TgmoZXmrFu9oYbPXcDbHcDSYpZzPRm-VZc7pVoiDOiHMSGNw@mail.gmail.com>
<CAH2-WznjeN2Wb7q5Gkbbiz-gfG7HB=igNsakCPafVKiamckYiw@mail.gmail.com>
<10910.1502302068@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, tgl@sss.pgh.pa.us, pg@bowt.ie, robertmhaas@gmail.com, daniel@manitou-mail.org
Subject: Re: Crash report for some ICU-52 (debian8) COLLATE and work_mem values
In-Reply-To: <b14b5efb-5354-63cb-2211-1d1576e063ef@2ndquadrant.com>
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> <CA+TgmoZXmrFu9oYbPXcDbHcDSYpZzPRm-VZc7pVoiDOiHMSGNw@mail.gmail.com> <CAH2-WznjeN2Wb7q5Gkbbiz-gfG7HB=igNsakCPafVKiamckYiw@mail.gmail.com> <10910.1502302068@sss.pgh.pa.us> <b14b5efb-5354-63cb-2211-1d1576e063ef@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox