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/init/postinit.c | |
parent | d64e6468f489effec356ce3501c0f226ac1cfcc0 (diff) |
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/init/postinit.c')
-rw-r--r-- | src/backend/utils/init/postinit.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index 6856ed99e7d..561bd13ed24 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -483,10 +483,6 @@ CheckMyDatabase(const char *name, bool am_superuser, bool override_allow_connect quote_identifier(name)))); } - /* Make the locale settings visible as GUC variables, too */ - SetConfigOption("lc_collate", collate, PGC_INTERNAL, PGC_S_DYNAMIC_DEFAULT); - SetConfigOption("lc_ctype", ctype, PGC_INTERNAL, PGC_S_DYNAMIC_DEFAULT); - ReleaseSysCache(tup); } |