pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
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: Tue, 15 Aug 2017 00:23:02 -0400
Message-ID: <4421.1502770982@sss.pgh.pa.us> (raw)
In-Reply-To: <CAH2-WzmeMSgjO-TocH7+v7vuwzv8C77eqGcTCTGSRattOK2ZLw@mail.gmail.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>
	<CAH2-WznaMH3SNE9saGzcJPm7-uUL=g3bTS5itR7cEmBZhWcS2A@mail.gmail.com>
	<CAH2-Wz=CNO0u7BALZoRYqNpW=jC9ntFMek9goLqioaGJxWmJ2Q@mail.gmail.com>
	<8830.1502313961@sss.pgh.pa.us>
	<CAH2-Wzm18GG_1by_pYRLg3npoxTBUW2=oxZDtVmaqKteZWaybw@mail.gmail.com>
	<5261d23c-1864-bec9-538c-24f25c7629cc@2ndquadrant.com>
	<CAH2-WzkHUMDfagwqVFSepv7dJqrghpG39+LtJiENu9SKRAcuNg@mail.gmail.com>
	<13673.1502733657@sss.pgh.pa.us>
	<CAH2-WzkcL1kNjTTt+VkzXttDDPeHvRe2-tLeyJMF++jLLRNzNw@mail.gmail.com>
	<28715.1502735531@sss.pgh.pa.us>
	<CAH2-Wz=kCYnv9Yf49mbezK0jvt7czOhEBwS91PyNW=G1RuC2Bw@mail.gmail.com>
	<7355.1502738237@sss.pgh.pa.us>
	<CAH2-WzkD2D0pT5NX4+MitH420O6L! fn5aiD5zWqVKuVq3qOSDBQ@mail.gmail.com>
	<25202.1502752318@sss.pgh.pa.us>
	<CAH2-WzmeMSgjO-TocH7+v7vuwzv8C77eqGcTCTGSRattOK2ZLw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Peter Geoghegan <pg@bowt.ie> writes:
> The comments that pg_import_system_collations() adds to each locale
> have an annoying tendency to exclude anything that isn't ascii-safe,

Right, but that's *necessary* for anything that goes into template0.

> Notice the lack of descriptions here, just because they weren't
> ascii-safe. I now wonder if we should even keep the comment thing at
> all. We can eventually add an SQL function, that is called by \dOS+,
> that interrogates ICU for a description on the fly.

Yup, the same idea came to me as I was reading your message.
So we don't really want a pg_collation column either, but a function
that can produce a result that varies with the current database's
encoding.

> Another thing that I dislike about get_icu_locale_comment() is that
> the descriptions we show are always English display names, regardless
> of pg_database collation or anything else. We shouldn't hard-code the
> use of English for display name, on general principle.

Again, that was mostly driven by the desire to get ASCII results
(or at least so I imagine; Peter E. might have a different take).
I think there's value in having a function that produces such a
description, but we could have a different one that produces a
description in the language indicated by the database's locale.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (85+ messages)  latest in thread

Message-ID: <4421.1502770982@sss.pgh.pa.us>
Permalink:  ../4421.1502770982@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4421.1502770982@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, pg@bowt.ie, peter.eisentraut@2ndquadrant.com, robertmhaas@gmail.com, daniel@manitou-mail.org
  Subject: Re: Crash report for some ICU-52 (debian8) COLLATE and work_mem values
  In-Reply-To: <4421.1502770982@sss.pgh.pa.us>
  References: <57860965-169f-461b-81f0-60d398894938@manitou-mail.org> <CA+TgmoZXmrFu9oYbPXcDbHcDSYpZzPRm-VZc7pVoiDOiHMSGNw@mail.gmail.com> <CAH2-WznjeN2Wb7q5Gkbbiz-gfG7HB=igNsakCPafVKiamckYiw@mail.gmail.com> <10910.1502302068@sss.pgh.pa.us> <CAH2-WznaMH3SNE9saGzcJPm7-uUL=g3bTS5itR7cEmBZhWcS2A@mail.gmail.com> <CAH2-Wz=CNO0u7BALZoRYqNpW=jC9ntFMek9goLqioaGJxWmJ2Q@mail.gmail.com> <8830.1502313961@sss.pgh.pa.us> <CAH2-Wzm18GG_1by_pYRLg3npoxTBUW2=oxZDtVmaqKteZWaybw@mail.gmail.com> <5261d23c-1864-bec9-538c-24f25c7629cc@2ndquadrant.com> <CAH2-WzkHUMDfagwqVFSepv7dJqrghpG39+LtJiENu9SKRAcuNg@mail.gmail.com> <13673.1502733657@sss.pgh.pa.us> <CAH2-WzkcL1kNjTTt+VkzXttDDPeHvRe2-tLeyJMF++jLLRNzNw@mail.gmail.com> <28715.1502735531@sss.pgh.pa.us> <CAH2-Wz=kCYnv9Yf49mbezK0jvt7czOhEBwS91PyNW=G1RuC2Bw@mail.gmail.com> <7355.1502738237@sss.pgh.pa.us> <25202.1502752318@sss.pgh.pa.us> <CAH2-WzmeMSgjO-TocH7+v7vuwzv8C77eqGcTCTGSRattOK2ZLw@mail.gmail.com> <4421.1502770982@sss.pgh.pa.us>

* 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