This is an automated email from the ASF dual-hosted git repository.

chenjinbao1989 pushed a commit to branch cbdb-postgres-merge
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/cbdb-postgres-merge by this 
push:
     new ecabc5ceafb Add guc lc_ctype back
ecabc5ceafb is described below

commit ecabc5ceafb858a2818a5de89efd8bbb6148f155
Author: Jinbao Chen <[email protected]>
AuthorDate: Wed Feb 4 09:30:08 2026 +0800

    Add guc lc_ctype back
---
 src/backend/utils/adt/pg_locale.c   |  1 +
 src/backend/utils/misc/guc_tables.c | 11 +++++++++++
 src/include/utils/pg_locale.h       |  1 +
 3 files changed, 13 insertions(+)

diff --git a/src/backend/utils/adt/pg_locale.c 
b/src/backend/utils/adt/pg_locale.c
index c984e81c050..ec61e58cfc6 100644
--- a/src/backend/utils/adt/pg_locale.c
+++ b/src/backend/utils/adt/pg_locale.c
@@ -97,6 +97,7 @@
 
 
 /* GUC settings */
+char      *locale_ctype;
 char      *locale_messages;
 char      *locale_monetary;
 char      *locale_numeric;
diff --git a/src/backend/utils/misc/guc_tables.c 
b/src/backend/utils/misc/guc_tables.c
index 927267bc313..4b48b161024 100644
--- a/src/backend/utils/misc/guc_tables.c
+++ b/src/backend/utils/misc/guc_tables.c
@@ -4147,6 +4147,17 @@ struct config_string ConfigureNamesString[] =
                NULL, NULL, NULL
        },
 
+       {
+                       {"lc_ctype", PGC_INTERNAL, PRESET_OPTIONS,
+                                       gettext_noop("Shows the character 
classification and case conversion locale."),
+                                       NULL,
+                                       GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE
+                       },
+                       &locale_ctype,
+                       "C",
+                       NULL, NULL, NULL
+       },
+       
        /* See main.c about why defaults for LC_foo are not all alike */
 
        {
diff --git a/src/include/utils/pg_locale.h b/src/include/utils/pg_locale.h
index e2a72435427..f966501ad6b 100644
--- a/src/include/utils/pg_locale.h
+++ b/src/include/utils/pg_locale.h
@@ -36,6 +36,7 @@
 #define LOCALE_NAME_BUFLEN 128
 
 /* GUC settings */
+extern PGDLLIMPORT char *locale_ctype;
 extern PGDLLIMPORT char *locale_messages;
 extern PGDLLIMPORT char *locale_monetary;
 extern PGDLLIMPORT char *locale_numeric;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to