From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Peter Geoghegan <pg(at)bowt(dot)ie>, Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, Daniel Verite <daniel(at)manitou-mail(dot)org>, PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: Crash report for some ICU-52 (debian8) COLLATE and work_mem values |
Date: | 2017-08-09 19:29:04 |
Message-ID: | CA+Tgmob0=Q1V71AmrauJf5FHF4V_fXL5UVOUP7FsPs4dkQdW7w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
On Wed, Aug 9, 2017 at 2:07 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> I suppose a different way to address this would be to make pg_upgrade
> smart enough to deal with the situation, by creating ICU collations
> that are used in the source installation but are missing from the
> initdb-provided set in the target.
Yeah, that idea has some appeal.
> But even if we had that, I'm
> dubious that having hundreds of collations present by default is really
> all that user-friendly.
The flip side is that it's not clear to me how the user is supposed to
discover possibly-useful collations that don't show up in
pg_collation. The documentation for CREATE COLLATION says only that
"The available choices depend on the operating system and build
options." Section 23.2.2.2 says "With ICU, it is not sensible to
enumerate all possible locale names. ICU uses a particular naming
system for locales, but there are many more ways to name a locale than
there are actually distinct locales. (In fact, any string will be
accepted as a locale name.)" So, there's no guidance on how to pick a
string that will work, and no error if you pick one that doesn't.
Wahoo!
I assume that this is in fact the whole point of putting any
ICU-related entries in pg_collation at all -- or for that matter any
libc-related entries. If it were easy to guess what parameters you
might want to provide to CREATE COLLATION, we could just let users
create the collations they happen to need and it would be only a minor
inconvenience. As it is, removing things from pg_collation seems to
make them all but undiscoverable.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2017-08-09 19:31:44 | Re: Crash report for some ICU-52 (debian8) COLLATE and work_mem values |
Previous Message | thom | 2017-08-09 18:56:08 | BUG #14776: ecpg 4.12.0 issues with macros containing line continued blocks |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2017-08-09 19:31:44 | Re: Crash report for some ICU-52 (debian8) COLLATE and work_mem values |
Previous Message | Alvaro Herrera | 2017-08-09 19:25:56 | Re: Re: [COMMITTERS] pgsql: Fix inadequacies in recently added wait events |