Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5d1d679

Browse files
committed
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.
1 parent 6e197cb commit 5d1d679

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bin/initdb/initdb.c

+2
Original file line numberDiff line numberDiff line change
@@ -1638,6 +1638,8 @@ setup_collation(void)
16381638
skipped++;
16391639
continue; /* error message printed by pg_get_encoding_from_locale() */
16401640
}
1641+
if (!PG_VALID_BE_ENCODING(enc))
1642+
continue; /* ignore locales for client-only encodings */
16411643
if (enc == PG_SQL_ASCII)
16421644
continue; /* C/POSIX are already in the catalog */
16431645

0 commit comments

Comments
 (0)