Ahoj,
2023-06-28 16:14:51.459 CEST [23646] USER@template1 WARNING: database "template1" has a collation version mismatch
2023-06-28 16:14:51.459 CEST [23646] USER@template1 DETAIL: The database was created using collation version 2.31, but the operating system provides version 2.36.
2023-06-28 16:14:51.459 CEST [23646] USER@template1 HINT: Rebuild all objects in this database that use the default collation and run ALTER DATABASE template1 REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.
Podle
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029548#20https://dba.stackexchange.com/questions/324649/collation-version-mismatchjsem pouzil v tomto poradi:
alter database postgres refresh collation version;
reindex database postgres;
alter database template1 refresh collation version;
reindex database template1;
Samozrejme si nejsem jisty, zda je to dostatecne a ve spravnem poradi.
Upgrade byl proveden v krocich, tzn:
1] upgrade debian 11 na 12
2] upgrade db postgresql-15:amd64 (15.3-1.pgdg110+1, 15.3-1.pgdg120+1)
Behem upgrade 1] zustal repozitar postgresql nasmerovany na verzi debian 11. Momentalne nemam dalsi stroj po ruce, ktery bych takhle upgradoval, tak jen, nekdo znaly, kdyby v bode 1] byl repozitar postgresql nasmerovany na debian 12, doslo by taky k teto situaci?
Bude nas cekat upgrade hodne postgresql stroju na debian 12 a takovehle veci nemam rad. Nekdo, kdo muze potvrdit, ze alter/reindex je takhle dostatecne? Napr. pan Stehule prosim?
Diky.