Re: tiny step toward threading: reduce dependence on setlocale()

2024-06-19 Thread Peter Eisentraut
On 15.06.24 01:35, Jeff Davis wrote: On Thu, 2024-06-06 at 11:37 -0700, Jeff Davis wrote: I think this patch series is a nice cleanup, as well, making libc more like the other providers and not dependent on global state. New rebased series attached with additional cleanup. Now that

Re: tiny step toward threading: reduce dependence on setlocale()

2024-06-14 Thread Jeff Davis
On Thu, 2024-06-06 at 11:37 -0700, Jeff Davis wrote: > > I think this patch series is a nice cleanup, as well, making libc > more > like the other providers and not dependent on global state. New rebased series attached with additional cleanup. Now that pg_locale_t is never NULL, we can simplify

Re: tiny step toward threading: reduce dependence on setlocale()

2024-06-06 Thread Jeff Davis
On Wed, 2024-06-05 at 17:23 -0700, Jeff Davis wrote: > A brief test shows that there may be a performance regression for > libc > default collations. But if so, I'm not sure that's avoidable if the > goal is to take away setlocale. I'll see if removing the extra > branches > mitigates it. I redid

tiny step toward threading: reduce dependence on setlocale()

2024-06-05 Thread Jeff Davis
There was an unconference session at pgconf.dev related to threading support. One of the problems identified was setlocale(). The attached series of patches make collation not depend on setlocale(), even if the database collation uses the libc provider. Since commit 8d9a9f034e, all supported