diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2023-06-07 16:57:06 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2023-06-07 16:57:06 +0200 |
commit | b0f6c437160db640d4ea3e49398ebc3ba39d1982 (patch) | |
tree | 7f20cb41b997c06a0f5748415e3185c349941937 /src/backend/utils/misc/guc_tables.c | |
parent | d64e6468f489effec356ce3501c0f226ac1cfcc0 (diff) | |
download | postgresql-b0f6c437160db640d4ea3e49398ebc3ba39d1982.tar.gz postgresql-b0f6c437160db640d4ea3e49398ebc3ba39d1982.zip |
Remove read-only server settings lc_collate and lc_ctype
The GUC settings lc_collate and lc_ctype are from a time when those
locale settings were cluster-global. When those locale settings were
made per-database (PG 8.4), the settings were kept as read-only. As
of PG 15, you can use ICU as the per-database locale provider, so
examining these settings is already less meaningful and possibly
confusing, since you need to look into pg_database to find out what is
really happening, and they would likely become fully obsolete in the
future anyway.
Reviewed-by: Jeff Davis <pgsql@j-davis.com>
Discussion: https://www.postgresql.org/message-id/696054d1-bc88-b6ab-129a-18b8bce6a6f0@enterprisedb.com
Diffstat (limited to 'src/backend/utils/misc/guc_tables.c')
-rw-r--r-- | src/backend/utils/misc/guc_tables.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/backend/utils/misc/guc_tables.c b/src/backend/utils/misc/guc_tables.c index 68aecad66f4..4665b0a35c3 100644 --- a/src/backend/utils/misc/guc_tables.c +++ b/src/backend/utils/misc/guc_tables.c @@ -563,8 +563,6 @@ static char *syslog_ident_str; static double phony_random_seed; static char *client_encoding_string; static char *datestyle_string; -static char *locale_collate; -static char *locale_ctype; static char *server_encoding_string; static char *server_version_string; static int server_version_num; @@ -4050,30 +4048,6 @@ struct config_string ConfigureNamesString[] = NULL, NULL, NULL }, - /* See main.c about why defaults for LC_foo are not all alike */ - - { - {"lc_collate", PGC_INTERNAL, PRESET_OPTIONS, - gettext_noop("Shows the collation order locale."), - NULL, - GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE - }, - &locale_collate, - "C", - 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 - }, - { {"lc_messages", PGC_SUSET, CLIENT_CONN_LOCALE, gettext_noop("Sets the language in which messages are displayed."), |