pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Jeff Davis <pgsql@j-davis.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: ICU locale validation / canonicalization
Date: Tue, 28 Mar 2023 08:41:24 +0200
Message-ID: <3e45a760-a7f8-80af-e4b0-be91427359d3@enterprisedb.com> (raw)
In-Reply-To: <2a9013df9a197aa5eb2d85b5f7ec0c5a726b6a2e.camel@j-davis.com>
References: <11b1eeb7e7667fdd4178497aeb796c48d26e69b9.camel@j-davis.com>
	<c15981f01fba3c0cbcdb49a6d43cdf0a90cd77ff.camel@j-davis.com>
	<857da8b1-2a1e-a2be-7df9-7f5e85a3bcb7@enterprisedb.com>
	<0d7c4115e3dd3581cec125207cbd72cab677c238.camel@j-davis.com>
	<1569fa4c-aded-57c4-eb07-3bcf03c5e423@enterprisedb.com>
	<60da0cecfb512a78b8666b31631a636215d8ce73.camel@j-davis.com>
	<20a2f13f652e6252531a449508e8a8be31d7664f.camel@j-davis.com>
	<7d77abd7767baaf30445e83415b428aa3eb54631.camel@j-davis.com>
	<9afa6dbe0d31053ad265aeba488fde784fd5b7ab.camel@j-davis.com>
	<b29cdc9b-1176-4456-e909-8fd64af03af8@enterprisedb.com>
	<c6dd63de8267ad8267ce4ec939f72c43f1fc2020.camel@j-davis.com>
	<7ee414ad-deb5-1144-8a0e-b34ae3b71cd5@enterprisedb.com>
	<4efdd7bdf9c811e1a32b8d10524bae8040367068.camel@j-davis.com>
	<6880701fd5cd5183ad7ff3a73d5c9291d6c2e331.camel@j-davis.com>
	<04182066-7655-344a-b8b7-040b1b2490fb@enterprisedb.com>
	<2a9013df9a197aa5eb2d85b5f7ec0c5a726b6a2e.camel@j-davis.com>

[PATCH v9 1/5] Fix error inconsistency in older ICU versions.

ok


[PATCH v9 2/5] initdb: replace check_icu_locale() with
  default_icu_locale().

I would keep the #ifdef USE_ICU inside the lower-level function 
default_icu_locale(), like it was before, so that the higher-level 
setlocales() doesn't need to know about it.

Otherwise ok.


[PATCH v9 3/5] initdb: emit message when using default ICU locale.

ok


[PATCH v9 4/5] Validate ICU locales.

Also here, let's keep the #ifdef USE_ICU in the lower-level function and 
move more logic in there.  Otherwise you have to repeat various things 
in DefineCollation() and createdb().

I'm not sure we need the IsBinaryUpgrade checks.  Users can set 
icu_validation_level on the target instance if they don't want that.






view thread (46+ messages)  latest in thread

Message-ID: <3e45a760-a7f8-80af-e4b0-be91427359d3@enterprisedb.com>
Permalink:  ../3e45a760-a7f8-80af-e4b0-be91427359d3@enterprisedb.com/
Also on:    postgresql.org/message-id/3e45a760-a7f8-80af-e4b0-be91427359d3@enterprisedb.com

 · 

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-hackers@postgresql.org
  Cc: peter.eisentraut@enterprisedb.com, pgsql@j-davis.com, robertmhaas@gmail.com
  Subject: Re: ICU locale validation / canonicalization
  In-Reply-To: <3e45a760-a7f8-80af-e4b0-be91427359d3@enterprisedb.com>
  References: <11b1eeb7e7667fdd4178497aeb796c48d26e69b9.camel@j-davis.com> <857da8b1-2a1e-a2be-7df9-7f5e85a3bcb7@enterprisedb.com> <0d7c4115e3dd3581cec125207cbd72cab677c238.camel@j-davis.com> <1569fa4c-aded-57c4-eb07-3bcf03c5e423@enterprisedb.com> <60da0cecfb512a78b8666b31631a636215d8ce73.camel@j-davis.com> <20a2f13f652e6252531a449508e8a8be31d7664f.camel@j-davis.com> <7d77abd7767baaf30445e83415b428aa3eb54631.camel@j-davis.com> <9afa6dbe0d31053ad265aeba488fde784fd5b7ab.camel@j-davis.com> <b29cdc9b-1176-4456-e909-8fd64af03af8@enterprisedb.com> <c6dd63de8267ad8267ce4ec939f72c43f1fc2020.camel@j-davis.com> <7ee414ad-deb5-1144-8a0e-b34ae3b71cd5@enterprisedb.com> <4efdd7bdf9c811e1a32b8d10524bae8040367068.camel@j-davis.com> <6880701fd5cd5183ad7ff3a73d5c9291d6c2e331.camel@j-davis.com> <04182066-7655-344a-b8b7-040b1b2490fb@enterprisedb.com> <2a9013df9a197aa5eb2d85b5f7ec0c5a726b6a2e.camel@j-davis.com> <3e45a760-a7f8-80af-e4b0-be91427359d3@enterprisedb.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