79678174

Date: 2025-06-24 20:18:18
Score: 0.5
Natty:
Report link

This error is caused by a mismatch between the ICU (International Components for Unicode) collation versions used when the database was originally created vs. what the upgraded OS provides.

To fix it, I ran the following SQL command inside psql:

ALTER DATABASE template1 REFRESH COLLATION VERSION;

If it succeeds, you’ll see output similar to this:

postgres=# ALTER DATABASE template1 REFRESH COLLATION VERSION;

NOTICE: changing version from 1540.3,1540.3 to 1541.2,1541.2

ALTER DATABASE

This tells PostgreSQL to accept and update the stored collation version to match the new OS-provided version.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Biruk Maru