mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Make initdb ignore locales for client-only encodings.
While putting such entries into pg_collation is harmless (since backends will ignore entries that don't match the database encoding), it's also useless.
This commit is contained in:
@ -1638,6 +1638,8 @@ setup_collation(void)
|
||||
skipped++;
|
||||
continue; /* error message printed by pg_get_encoding_from_locale() */
|
||||
}
|
||||
if (!PG_VALID_BE_ENCODING(enc))
|
||||
continue; /* ignore locales for client-only encodings */
|
||||
if (enc == PG_SQL_ASCII)
|
||||
continue; /* C/POSIX are already in the catalog */
|
||||
|
||||
|
Reference in New Issue
Block a user