Project

General

Profile

Actions

tickets #170143

closed

PostgreSQL on mirrordb{1,2} collation version mismatch

Added by crameleon 4 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Servers hosted in PRG
Target version:
-
Start date:
2024-11-22
Due date:
% Done:

0%

Estimated time:

Description

crameleon@mirrordb2:/home/crameleon> sudo -u postgres psql
[sudo] password for crameleon:
WARNING:  database "postgres" has a collation version mismatch
DETAIL:  The database was created using collation version 2.31, but the operating system provides version 2.38.
HINT:  Rebuild all objects in this database that use the default collation and run ALTER DATABASE postgres REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
psql (15.8)
Type "help" for help.

postgres=#

I already encountered this on the template1 database the other day, there I solved it using:

REINDEX DATABASE template1;
ALTER DATABASE template1 REFRESH COLLATION VERSION;

I could not quite find any official documentation about whether that's the right procedure (regarding the hint "Rebuild all objects in this database that use the default collation") and am hence a bit reluctant to run it on the postgres database.

Actions

Also available in: Atom PDF