aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/pgstatfuncs.c
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2023-03-23 09:50:06 -0700
committerJeff Davis <jdavis@postgresql.org>2023-03-23 10:08:27 -0700
commit3b50275b12950280fb07193e24a4f400ed8a9fef (patch)
tree7ac5d04feffb1588de3d13c4a6d9a4d045232709 /src/backend/utils/adt/pgstatfuncs.c
parent949e2e7c4f680ef86e93500ba4bee563ae4ce78e (diff)
downloadpostgresql-3b50275b12950280fb07193e24a4f400ed8a9fef.tar.gz
postgresql-3b50275b12950280fb07193e24a4f400ed8a9fef.zip
Handle the "und" locale in ICU versions 54 and older.
The "und" locale is an alternative spelling of the root locale, but it was not recognized until ICU 55. To maintain common behavior across all supported ICU versions, check for "und" and replace with "root" before opening. Previously, the lack of support for "und" was dangerous, because versions 54 and older fall back to the environment when a locale is not found. If the user specified "und" for the language (which is expected and documented), it could not only resolve to the wrong collator, but it could unexpectedly change (which could lead to corrupt indexes). This effectively reverts commit d72900bded, which worked around the problem for the built-in "unicode" collation, and is no longer necessary. Discussion: https://postgr.es/m/60da0cecfb512a78b8666b31631a636215d8ce73.camel@j-davis.com Discussion: https://postgr.es/m/0c6fa66f2753217d2a40480a96bd2ccf023536a1.camel@j-davis.com Reviewed-by: Peter Eisentraut
Diffstat (limited to 'src/backend/utils/adt/pgstatfuncs.c')
0 files changed, 0 insertions, 0 deletions