aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/varlena.c
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2024-09-12 13:35:49 -0700
committerJeff Davis <jdavis@postgresql.org>2024-09-12 13:35:49 -0700
commit6a9fc11033e61d0dde30d5114887714dbd7612d5 (patch)
tree8cff33ce02a3296310112e771524cae057e6d582 /src/backend/utils/adt/varlena.c
parentcb599b9ddfccd15e77f4c167c4e5bdf1ddc3af38 (diff)
downloadpostgresql-6a9fc11033e61d0dde30d5114887714dbd7612d5.tar.gz
postgresql-6a9fc11033e61d0dde30d5114887714dbd7612d5.zip
Remove redundant check for default collation.
The operative check is for a deterministic collation, so the check for DEFAULT_COLLATION is redundant. Furthermore, it will be wrong if we ever support a non-deterministic default collation. Author: Andreas Karlsson Discussion: https://postgr.es/m/60929555-4709-40a7-b136-bcb44cff5a3c@proxel.se
Diffstat (limited to 'src/backend/utils/adt/varlena.c')
-rw-r--r--src/backend/utils/adt/varlena.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/backend/utils/adt/varlena.c b/src/backend/utils/adt/varlena.c
index 18629438881..3658d0047b0 100644
--- a/src/backend/utils/adt/varlena.c
+++ b/src/backend/utils/adt/varlena.c
@@ -2540,7 +2540,6 @@ btvarstrequalimage(PG_FUNCTION_ARGS)
locale = pg_newlocale_from_collation(collid);
if (locale->collate_is_c ||
- collid == DEFAULT_COLLATION_OID ||
pg_locale_deterministic(locale))
PG_RETURN_BOOL(true);
else