Remove lc_ctype_is_c().

Jeff Davis <jdavis@postgresql.org>

Commit: 51edc4ca54f826cfac012c7306eee479f07a5dc7
Author: Jeff Davis <jdavis@postgresql.org>
Date: 2024-09-06T20:23:21Z
Releases: 18.0
Remove lc_ctype_is_c().

Instead always fetch the locale and look at the ctype_is_c field.

hba.c relies on regexes working for the C locale without needing
catalog access, which worked before due to a special case for
C_COLLATION_OID in lc_ctype_is_c(). Move the special case to
pg_set_regex_collation() now that lc_ctype_is_c() is gone.

Author: Andreas Karlsson
Discussion: https://postgr.es/m/60929555-4709-40a7-b136-bcb44cff5a3c@proxel.se

Files

Discussion