Minor refactor: Use more consistent names for the labels of PG_Locale_Strategy

From: Andreas Karlsson <andreas(at)proxel(dot)se>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Minor refactor: Use more consistent names for the labels of PG_Locale_Strategy
Date: 2024-08-28 14:58:16
Message-ID: 6f81200f-68fd-411e-97a1-d1f291d2e222@proxel.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
0001-Rename-enum-label-names-for-PG_Locale_Strategy.patch text/x-patch 12.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Benoit Lobréau 2024-08-28 15:10:26 Parallel workers stats in pg_stat_database
Previous Message Robert Haas 2024-08-28 14:57:38 Re: allowing extensions to control planner behavior