Minor refactor: Use more consistent names for the labels of PG_Locale_Strategy
Andreas Karlsson <andreas@proxel.se>
From: Andreas Karlsson <andreas@proxel.se>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-08-28T14:58:16Z
Lists: pgsql-hackers
Attachments
- 0001-Rename-enum-label-names-for-PG_Locale_Strategy.patch (text/x-patch) patch 0001
Hi, When working on the regex code I noticed that the labels of PG_Locale_Strategy had become inconsistent with the addition of PG_REGEX_BUILTIN but while at it I also noticed that PG_REGEX_LOCALE_WIDE_L and PG_REGEX_LOCALE_1BYTE_L did not make it obvious that they were libc-related so I propose a new naming scheme: PG_STRATEGY_<type>[_<subtype>] I am open for other suggestions of course like keeping the PG_LOCALE_* prefix, but in any case I think we should make the enum labels consistent. Andreas
Commits
-
Rename enum labels of PG_Locale_Strategy
- 23138284cde4 18.0 landed