From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
---|---|
To: | Andreas Karlsson <andreas(at)proxel(dot)se>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Cc: | Jeff Davis <pgsql(at)j-davis(dot)com> |
Subject: | Re: simplify regular expression locale global variables |
Date: | 2024-12-03 16:06:30 |
Message-ID: | ad07826e-c47b-4015-a64d-4454acaef605@eisentraut.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 25.10.24 10:16, Andreas Karlsson wrote:
> On 10/15/24 8:12 AM, Peter Eisentraut wrote:
>> We currently have
>>
>> static PG_Locale_Strategy pg_regex_strategy;
>> static pg_locale_t pg_regex_locale;
>> static Oid pg_regex_collation;
>>
>> but after the recent improvements to pg_locale_t handling, we don't
>> need all three anymore. All the information we have is contained in
>> pg_locale_t, so we just need to keep that one. This allows us to
>> structure the locale-using regular expression code more similar to
>> other locale-using code, mainly by provider, avoiding another layer
>> that is specific only to the regular expression code. The first patch
>> implements that.
>
> Jeff Davis has a patch which also fixes this while refactoring other
> stuff too which I prefer over your patch since it also cleans up the
> collation code in general.
>
> https://www.postgresql.org/message-
> id/2830211e1b6e6a2e26d845780b03e125281ea17b.camel%40j-davis.com
That patch set looks like a good direction.
But it doesn't remove pg_regex_collation, only pg_regex_strategy. So I
have split my v2 into two patches, the first removes pg_regex_collation
and the second removes pg_regex_strategy. The first patch is useful on
its own, I think; the second one will presumably be replaced by the
other patch series above.
Attachment | Content-Type | Size |
---|---|---|
v3-0001-Remove-pg_regex_collation.patch | text/plain | 2.5 KB |
v3-0002-Remove-pg_regex_strategy.patch | text/plain | 18.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2024-12-03 16:19:19 | Re: code contributions for 2024, WIP version |
Previous Message | Kirill Reshke | 2024-12-03 16:04:59 | Re: Amcheck verification of GiST and GIN |