mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +03:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user