From 6e197cb2e537880f36828a6c55d0f6df5bf7daa8 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 22 Mar 2011 16:55:32 -0400 Subject: Improve reporting of run-time-detected indeterminate-collation errors. pg_newlocale_from_collation does not have enough context to give an error message that's even a little bit useful, so move the responsibility for complaining up to its callers. Also, reword ERRCODE_INDETERMINATE_COLLATION error messages in a less jargony, more message-style-guide-compliant fashion. --- src/backend/commands/indexcmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/commands/indexcmds.c') diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index 163980bbfa3..dafa6d5efc1 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -899,7 +899,7 @@ ComputeIndexAttrs(IndexInfo *indexInfo, if (!OidIsValid(attcollation)) ereport(ERROR, (errcode(ERRCODE_INDETERMINATE_COLLATION), - errmsg("no collation was derived for the index expression"), + errmsg("could not determine which collation to use for index expression"), errhint("Use the COLLATE clause to set the collation explicitly."))); } else -- cgit v1.2.3