Commit f8ca222
committed
initdb: replace check_icu_locale() with default_icu_locale().
The extra checks done in check_icu_locale() are not necessary. An
existing comment already pointed out that the checks would be done
during post-bootstrap initialization, when the locale is opened by the
backend. This was a mistake in commit 27b6237.
This commit creates a simpler function default_icu_locale() to just
return the locale of the default collator.
Discussion: https://postgr.es/m/04182066-7655-344a-b8b7-040b1b2490fb%40enterprisedb.com
Reviewed-by: Peter Eisentraut1 parent 8b3eb0c commit f8ca222
1 file changed
+28
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2243 | 2243 | | |
2244 | 2244 | | |
2245 | 2245 | | |
2246 | | - | |
2247 | | - | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
2248 | 2252 | | |
2249 | | - | |
2250 | | - | |
| 2253 | + | |
| 2254 | + | |
2251 | 2255 | | |
2252 | 2256 | | |
2253 | 2257 | | |
2254 | 2258 | | |
| 2259 | + | |
| 2260 | + | |
2255 | 2261 | | |
2256 | 2262 | | |
2257 | | - | |
| 2263 | + | |
2258 | 2264 | | |
2259 | | - | |
2260 | | - | |
2261 | | - | |
2262 | | - | |
2263 | | - | |
2264 | | - | |
2265 | | - | |
2266 | | - | |
| 2265 | + | |
| 2266 | + | |
2267 | 2267 | | |
2268 | | - | |
2269 | | - | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
2270 | 2272 | | |
2271 | | - | |
2272 | | - | |
2273 | | - | |
2274 | | - | |
2275 | | - | |
2276 | | - | |
2277 | | - | |
2278 | | - | |
2279 | | - | |
2280 | | - | |
2281 | | - | |
2282 | | - | |
| 2273 | + | |
| 2274 | + | |
2283 | 2275 | | |
2284 | 2276 | | |
| 2277 | + | |
| 2278 | + | |
2285 | 2279 | | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
2286 | 2284 | | |
2287 | 2285 | | |
2288 | 2286 | | |
| |||
2339 | 2337 | | |
2340 | 2338 | | |
2341 | 2339 | | |
2342 | | - | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
2343 | 2343 | | |
2344 | 2344 | | |
2345 | 2345 | | |
| |||
0 commit comments