postgres/src/backend/tsearch
Jeff Davis e113f9c102 tsearch: use database default collation for parsing.
Previously, tsearch used the database's CTYPE setting, which only
matches the database default collation if the locale provider is libc.

Note that tsearch types (tsvector and tsquery) are not collatable
types. The locale affects parsing the original text, which is a lossy
process, so a COLLATE clause on the already-parsed value would not
make sense.

Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Discussion: https://postgr.es/m/0151ad01239e2cc7b3139644358cf8f7b9622ff7.camel@j-davis.com
2025-10-21 09:31:49 -07:00
..
dicts Update copyright for 2019 2019-01-02 12:44:25 -05:00
dict_ispell.c Suppress complaints about leaks in TS dictionary loading. 2025-08-02 21:59:46 -04:00
dict_simple.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
dict_synonym.c Suppress complaints about leaks in TS dictionary loading. 2025-08-02 21:59:46 -04:00
dict_thesaurus.c Suppress complaints about leaks in TS dictionary loading. 2025-08-02 21:59:46 -04:00
dict.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
Makefile Update copyright for 2025 2025-01-01 11:21:55 -05:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00
regis.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
spell.c Clear errno before calling strtol() in spell.c. 2025-03-08 11:24:25 -05:00
to_tsany.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
ts_locale.c tsearch: use database default collation for parsing. 2025-10-21 09:31:49 -07:00
ts_parse.c Remove useless/superfluous Datum conversions 2025-08-08 22:06:57 +02:00
ts_selfuncs.c Track the maximum possible frequency of non-MCE array elements. 2025-09-20 14:48:16 -04:00
ts_typanalyze.c Track the maximum possible frequency of non-MCE array elements. 2025-09-20 14:48:16 -04:00
ts_utils.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
wparser_def.c tsearch: use database default collation for parsing. 2025-10-21 09:31:49 -07:00
wparser.c Update copyright for 2025 2025-01-01 11:21:55 -05:00