Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5d1d679

Browse files
committed
Make initdb ignore locales for client-only encodings.
While putting such entries into pg_collation is harmless (since backendswill ignore entries that don't match the database encoding), it's alsouseless.
1 parent6e197cb commit5d1d679

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/bin/initdb/initdb.c

Lines changed: 2 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp