postgresql/src/bin
Jeff Davis 3b50275b12 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
2023-03-23 10:08:27 -07:00
..
initdb Handle the "und" locale in ICU versions 54 and older. 2023-03-23 10:08:27 -07:00
pg_amcheck Fix new test case to work on (some?) big-endian architectures. 2023-03-22 17:14:21 -04:00
pg_archivecleanup Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_basebackup meson: tests: Adjust with_icu/ZSTD env vars for pg_dump, pg_basebackup 2023-03-08 17:04:15 -08:00
pg_checksums Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_config Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_controldata Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_ctl Break up long GETTEXT_FILES lists 2023-03-08 15:05:43 +01:00
pg_dump Minor comment improvements for compress_lz4 2023-03-23 17:55:52 +01:00
pg_resetwal Break up long GETTEXT_FILES lists 2023-03-08 15:05:43 +01:00
pg_rewind Break up long GETTEXT_FILES lists 2023-03-08 15:05:43 +01:00
pg_test_fsync Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_test_timing Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_upgrade Avoid using atooid for numerical comparisons which arent Oids 2023-03-21 12:57:21 +01:00
pg_verifybackup Add support for progress reporting to pg_verifybackup 2023-02-06 14:40:31 +09:00
pg_waldump pg_waldump: Allow hexadecimal values for -t/--timeline option 2023-03-21 08:05:23 +01:00
pgbench pgbench: Prepare commands in pipelines in advance 2023-02-21 10:56:37 +01:00
pgevent Update copyright for 2023 2023-01-02 15:00:37 -05:00
psql Add SHELL_ERROR and SHELL_EXIT_CODE magic variables to psql. 2023-03-21 13:03:56 -04:00
scripts initdb: derive encoding from locale for ICU; similar to libc. 2023-03-10 10:51:24 -08:00
Makefile Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00