diff options
author | Jeff Davis <jdavis@postgresql.org> | 2024-08-06 11:55:21 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2024-08-06 12:25:12 -0700 |
commit | a890ad214942c9eab1b2f0c6997e7dc114f99e71 (patch) | |
tree | 7d3d4a461249eeb528a5739371c9cb6550daeb28 /src/test/modules/test_json_parser/test_json_parser_incremental.c | |
parent | a54d4ed183927f15e1853b83106acebeeeee11c8 (diff) | |
download | postgresql-a890ad214942c9eab1b2f0c6997e7dc114f99e71.tar.gz postgresql-a890ad214942c9eab1b2f0c6997e7dc114f99e71.zip |
selfuncs.c: use pg_strxfrm() instead of strxfrm().
pg_strxfrm() takes a pg_locale_t, so it works properly with all
providers. This improves estimates for ICU when performing linear
interpolation within a histogram bin.
Previously, convert_string_datum() always used strxfrm() and relied on
setlocale(). That did not produce good estimates for non-default or
non-libc collations.
Discussion: https://postgr.es/m/89475ee5487d795124f4e25118ea8f1853edb8cb.camel@j-davis.com
Diffstat (limited to 'src/test/modules/test_json_parser/test_json_parser_incremental.c')
0 files changed, 0 insertions, 0 deletions