diff options
author | Jeff Davis <jdavis@postgresql.org> | 2024-09-04 12:30:14 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2024-09-04 14:35:25 -0700 |
commit | 06421b08436414b42cd169501005f15adee986f1 (patch) | |
tree | 2cf8e527daaf21dd9057f0d2a3a648e35367ff96 /src/backend/commands/collationcmds.c | |
parent | 83eb481d527b541e2ef2a1b14ab2c56b2ccf362b (diff) | |
download | postgresql-06421b08436414b42cd169501005f15adee986f1.tar.gz postgresql-06421b08436414b42cd169501005f15adee986f1.zip |
Remove lc_collate_is_c().
Instead just look up the collation and check collate_is_c field.
Author: Andreas Karlsson
Discussion: https://postgr.es/m/60929555-4709-40a7-b136-bcb44cff5a3c@proxel.se
Diffstat (limited to 'src/backend/commands/collationcmds.c')
-rw-r--r-- | src/backend/commands/collationcmds.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/backend/commands/collationcmds.c b/src/backend/commands/collationcmds.c index 63ef9a08411..53b6a479aa4 100644 --- a/src/backend/commands/collationcmds.c +++ b/src/backend/commands/collationcmds.c @@ -377,13 +377,9 @@ DefineCollation(ParseState *pstate, List *names, List *parameters, bool if_not_e if (!OidIsValid(newoid)) return InvalidObjectAddress; - /* - * Check that the locales can be loaded. NB: pg_newlocale_from_collation - * is only supposed to be called on non-C-equivalent locales. - */ + /* Check that the locales can be loaded. */ CommandCounterIncrement(); - if (!lc_collate_is_c(newoid) || !lc_ctype_is_c(newoid)) - (void) pg_newlocale_from_collation(newoid); + (void) pg_newlocale_from_collation(newoid); ObjectAddressSet(address, CollationRelationId, newoid); |