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

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: tiny step toward threading: reduce dependence on setlocale()
Date: 2024-06-14 23:35:19
Message-ID: f1935bc481438c9d86c2e0ac537b1c110d41a00a.camel@j-davis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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 the way the collation cache
works, eliminating ~100 lines.

--
Jeff Davis
PostgreSQL Contributor Team - AWS

Attachment Content-Type Size
v2-0001-Make-database-default-collation-internal-to-pg_lo.patch text/x-patch 5.7 KB
v2-0002-Make-database-collation-pg_locale_t-always-non-NU.patch text/x-patch 2.6 KB
v2-0003-ts_locale.c-do-not-use-NULL-to-mean-the-database-.patch text/x-patch 3.2 KB
v2-0004-Remove-support-for-null-pg_locale_t.patch text/x-patch 10.3 KB
v2-0005-Avoid-setlocale-in-lc_collate_is_c-and-lc_ctype_i.patch text/x-patch 14.6 KB
v2-0006-Simplify-collation-cache.patch text/x-patch 8.9 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2024-06-14 23:41:40 Re: Using LibPq in TAP tests via FFI
Previous Message Jelte Fennema-Nio 2024-06-14 22:11:04 Re: RFC: adding pytest as a supported test framework