aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/pg_locale.c
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2024-12-02 21:59:02 -0800
committerJeff Davis <jdavis@postgresql.org>2024-12-02 21:59:02 -0800
commite3fa2b037c6f0f435838e99200050dc54c306085 (patch)
treec1468cf7a07d6b637e778487e7547e09c66ef8a7 /src/backend/utils/adt/pg_locale.c
parent4171c44c9b791da3c00386dc6d8e6b1842e3036b (diff)
downloadpostgresql-e3fa2b037c6f0f435838e99200050dc54c306085.tar.gz
postgresql-e3fa2b037c6f0f435838e99200050dc54c306085.zip
Fix unintentional behavior change in commit e9931bfb75.
Prior to that commit, there was special case to use ASCII case mapping behavior for the libc provider with a single-byte encoding when that's the default collation. Commit e9931bfb75 mistakenly eliminated that special case; this commit restores it. Discussion: https://postgr.es/m/01a104f0d2179d756261e90d96fd65c36ad6fcf0.camel@j-davis.com
Diffstat (limited to 'src/backend/utils/adt/pg_locale.c')
-rw-r--r--src/backend/utils/adt/pg_locale.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c
index 9412cad3ac5..91cee7714b1 100644
--- a/src/backend/utils/adt/pg_locale.c
+++ b/src/backend/utils/adt/pg_locale.c
@@ -1216,6 +1216,7 @@ create_pg_locale(Oid collid, MemoryContext context)
result->provider = collform->collprovider;
result->deterministic = collform->collisdeterministic;
+ result->is_default = false;
if (collform->collprovider == COLLPROVIDER_BUILTIN)
{
@@ -1409,6 +1410,7 @@ init_database_collation(void)
default_locale.provider = dbform->datlocprovider;
+ default_locale.is_default = true;
/*
* Default locale is currently always deterministic. Nondeterministic