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: Mon, 14 Aug 2017 16:13:33 -0400
Message-ID: <9609.1502741613@sss.pgh.pa.us> (raw)
In-Reply-To: <CAH2-Wzno4cHke3+3dJPtOT7fKnva9Asr=JM-CG2yE33JPfrGSw@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-Wzno4cHke3+3dJPtOT7fKnva! 9Asr=JM-CG2yE33JPfrGSw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Peter Geoghegan <pg@bowt.ie> writes:
> On Mon, Aug 14, 2017 at 12:17 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Maybe I'm missing something, but I didn't think there would be anything
>> terribly disastrous about having pg_import_system_collations() install
>> these descriptions as comments in v10 and then changing it to put them
>> directly into pg_collation in later versions.  We'd have to adapt the
>> behavior of psql's \dO, but that's true no matter when we change that.

> Well, I don't think you're going to get on board with the idea of
> having CREATE COLLATION add a comment (and I agree that that's a bad
> idea), so CREATE COLLATION is in a very bad spot if we put this off
> for a release.

How so?  When you create the collation in v11, the column will get
populated, no problem.  (I'm envisioning that we add code to CREATE
COLLATION to populate it, much as Peter E's auto_comment patch did
except for where the data goes.)

> Unless we add an ICU-owned pg_collation column for the human-readable
> ICU string, CREATE COLLATION will not let the user determine what ICU
> thinks the collation/language is from within Postgres.

Somehow, this does not strike me as a stop-ship problem for v10.
It's a nice-to-have feature, sure, but we're past the time for that.
For now, we have to take the attitude that it's the user's problem
whether the arguments for CREATE COLLATION are sane --- we can blame
that policy on ICU itself.

(BTW, I would argue vehemently against defining this new column as
"ICU owned".  I think it should just be "colldescription" and we
populate it with whatever is reasonable.  For example we can move the
comments for the hardwired collations there.  I dunno whether we can
come up with anything authoritative for libc collations, but if we
can, they're welcome to the party as well.)

			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: <9609.1502741613@sss.pgh.pa.us>
Permalink:  ../9609.1502741613@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9609.1502741613@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: <9609.1502741613@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> <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> <9609.1502741613@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