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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy