From a54bdbc04ab77157f2f5381c6a0138e7935e9517 Mon Sep 17 00:00:00 2001
From: "Chao Li (Evan)" <lic@highgo.com>
Date: Tue, 13 Jan 2026 10:02:41 +0800
Subject: [PATCH v1] str_casefold: fix typo in error message

This appears to be an oversight from the initial commit bfc599206.

Author: Chao Li <lic@highgo.com>
---
 src/backend/utils/adt/formatting.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c
index 6affdd86624..cf580c63c78 100644
--- a/src/backend/utils/adt/formatting.c
+++ b/src/backend/utils/adt/formatting.c
@@ -1825,7 +1825,7 @@ str_casefold(const char *buff, size_t nbytes, Oid collid)
 		ereport(ERROR,
 				(errcode(ERRCODE_INDETERMINATE_COLLATION),
 				 errmsg("could not determine which collation to use for %s function",
-						"lower()"),
+						"casefold()"),
 				 errhint("Use the COLLATE clause to set the collation explicitly.")));
 	}
 
-- 
2.39.5 (Apple Git-154)

