Commit a890ad2
committed
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.com1 parent a54d4ed commit a890ad2
2 files changed
+25
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2124 | 2124 | | |
2125 | 2125 | | |
2126 | 2126 | | |
2127 | | - | |
2128 | | - | |
2129 | 2127 | | |
2130 | | - | |
2131 | | - | |
2132 | | - | |
2133 | | - | |
2134 | | - | |
2135 | 2128 | | |
2136 | 2129 | | |
2137 | 2130 | | |
| |||
2340 | 2333 | | |
2341 | 2334 | | |
2342 | 2335 | | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
2343 | 2340 | | |
2344 | 2341 | | |
2345 | 2342 | | |
| |||
2372 | 2369 | | |
2373 | 2370 | | |
2374 | 2371 | | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
2375 | 2376 | | |
2376 | 2377 | | |
2377 | 2378 | | |
| |||
2426 | 2427 | | |
2427 | 2428 | | |
2428 | 2429 | | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
2429 | 2434 | | |
2430 | 2435 | | |
2431 | 2436 | | |
| |||
2455 | 2460 | | |
2456 | 2461 | | |
2457 | 2462 | | |
| 2463 | + | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
2458 | 2467 | | |
2459 | 2468 | | |
2460 | 2469 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4639 | 4639 | | |
4640 | 4640 | | |
4641 | 4641 | | |
4642 | | - | |
| 4642 | + | |
4643 | 4643 | | |
4644 | 4644 | | |
4645 | 4645 | | |
| |||
4673 | 4673 | | |
4674 | 4674 | | |
4675 | 4675 | | |
| 4676 | + | |
4676 | 4677 | | |
4677 | 4678 | | |
4678 | 4679 | | |
4679 | 4680 | | |
4680 | 4681 | | |
4681 | 4682 | | |
4682 | | - | |
| 4683 | + | |
4683 | 4684 | | |
4684 | 4685 | | |
4685 | 4686 | | |
4686 | 4687 | | |
4687 | 4688 | | |
| 4689 | + | |
| 4690 | + | |
| 4691 | + | |
| 4692 | + | |
4688 | 4693 | | |
4689 | | - | |
| 4694 | + | |
4690 | 4695 | | |
4691 | 4696 | | |
4692 | 4697 | | |
| |||
4698 | 4703 | | |
4699 | 4704 | | |
4700 | 4705 | | |
4701 | | - | |
| 4706 | + | |
4702 | 4707 | | |
4703 | 4708 | | |
4704 | 4709 | | |
| |||
0 commit comments