summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/pg_locale.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2022-02-10 09:16:17 +0100
committerPeter Eisentraut <peter@eisentraut.org>2022-02-10 09:16:17 +0100
commitf5744f1d1e3588b4c782bcad44e8da9c056eb67f (patch)
treed07eb89260538d20325eb28dd1e6bf64fa5d64b4 /src/backend/utils/adt/pg_locale.c
parent400fc6b6487ddf16aa82c9d76e5cfbe64d94f660 (diff)
Update comment
Update a comment that assumed that libc collations don't support versioning. Also improve an adjacent error message a bit.
Diffstat (limited to 'src/backend/utils/adt/pg_locale.c')
-rw-r--r--src/backend/utils/adt/pg_locale.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c
index aefa0818d0a..871a710967c 100644
--- a/src/backend/utils/adt/pg_locale.c
+++ b/src/backend/utils/adt/pg_locale.c
@@ -1609,11 +1609,11 @@ pg_newlocale_from_collation(Oid collid)
{
/*
* This could happen when specifying a version in CREATE
- * COLLATION for a libc locale, or manually creating a mess in
- * the catalogs.
+ * COLLATION but the provider does not support versioning, or
+ * manually creating a mess in the catalogs.
*/
ereport(ERROR,
- (errmsg("collation \"%s\" has no actual version, but a version was specified",
+ (errmsg("collation \"%s\" has no actual version, but a version was recorded",
NameStr(collform->collname))));
}