Skip to content

Commit 6a9fc11

Browse files
committed
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
1 parent cb599b9 commit 6a9fc11

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/backend/utils/adt/varlena.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2540,7 +2540,6 @@ btvarstrequalimage(PG_FUNCTION_ARGS)
25402540
locale = pg_newlocale_from_collation(collid);
25412541

25422542
if (locale->collate_is_c ||
2543-
collid == DEFAULT_COLLATION_OID ||
25442543
pg_locale_deterministic(locale))
25452544
PG_RETURN_BOOL(true);
25462545
else

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy