Skip to content

Commit f5744f1

Browse files
committed
Update comment
Update a comment that assumed that libc collations don't support versioning. Also improve an adjacent error message a bit.
1 parent 400fc6b commit f5744f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/utils/adt/pg_locale.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,11 +1609,11 @@ pg_newlocale_from_collation(Oid collid)
16091609
{
16101610
/*
16111611
* This could happen when specifying a version in CREATE
1612-
* COLLATION for a libc locale, or manually creating a mess in
1613-
* the catalogs.
1612+
* COLLATION but the provider does not support versioning, or
1613+
* manually creating a mess in the catalogs.
16141614
*/
16151615
ereport(ERROR,
1616-
(errmsg("collation \"%s\" has no actual version, but a version was specified",
1616+
(errmsg("collation \"%s\" has no actual version, but a version was recorded",
16171617
NameStr(collform->collname))));
16181618
}
16191619

0 commit comments

Comments
 (0)