Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dhTOZ-0007D6-KH for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Aug 2017 04:23:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dhTOY-0006Na-HE for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Aug 2017 04:23:58 +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 1dhTNr-00057e-6X for pgsql-bugs@postgresql.org; Tue, 15 Aug 2017 04:23:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dhTNn-0002kO-Mw for pgsql-bugs@postgresql.org; Tue, 15 Aug 2017 04:23:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v7F4N2JD004422; Tue, 15 Aug 2017 00:23:02 -0400 From: Tom Lane To: Peter Geoghegan cc: Peter Eisentraut , Robert Haas , Daniel Verite , PostgreSQL mailing lists Subject: Re: Crash report for some ICU-52 (debian8) COLLATE and work_mem values In-reply-to: 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> <8830.1502313961@sss.pgh.pa.us> <5261d23c-1864-bec9-538c-24f25c7629cc@2ndquadrant.com> <13673.1502733657@sss.pgh.pa.us> <28715.1502735531@sss.pgh.pa.us> <7355.1502738237@sss.pgh.pa.us> <25202.1502752318@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Mon, 14 Aug 2017 20:55:47 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4420.1502770982.1@sss.pgh.pa.us> Date: Tue, 15 Aug 2017 00:23:02 -0400 Message-ID: <4421.1502770982@sss.pgh.pa.us> 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 Peter Geoghegan 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