Re: Default Sort order Problem - Newbie ;-)

Поиск
Список
Период
Сортировка
От Holger Jakobs
Тема Re: Default Sort order Problem - Newbie ;-)
Дата
Msg-id b9c5e8c7-688c-a08e-497e-39befc62c8b3@jakobs.com
обсуждение исходный текст
Ответ на Default Sort order Problem - Newbie ;-)  (Franz Xaver <drummelbummel@hotmail.com>)
Ответы AW: Default Sort order Problem - Newbie ;-)  (Franz Xaver <drummelbummel@hotmail.com>)
Список pgsql-admin
Am 23.11.22 um 03:23 schrieb Franz Xaver:
@font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; font-size:11.0pt; font-family:"Calibri",sans-serif;}.MsoChpDefault {mso-style-type:export-only;}div.WordSection1 {page:WordSection1;}

Hello,

 

i am updating GVM on an existing System (Kali Linux). There’s a strange Problem i can not solve myself and even Google search does not bring me further.

What is GVM? Obviously nothing Postgres related.

 

There’s two clusters and i had been able to switch the Default to 15

 

C:\home\kali> pg_lsclusters

Ver Cluster Port Status Owner    Data directory              Log file

14  main    5433 online postgres /var/lib/postgresql/14/main /var/log/postgresql/postgresql-14-main.log

15  main    5432 online postgres /var/lib/postgresql/15/main /var/log/postgresql/postgresql-15-main.log

 

But the database can not be created due to error:

 

WARNUNG:  Version von Sortierfolge für Datenbank »postgres« stimmt nicht überein

DETAIL:  Die Datenbank wurde mit Sortierfolgenversion 2.35 erzeugt, aber das Betriebssystem hat Version 2.36.

TIP:  Bauen Sie alle Objekte in dieser Datenbank, die die Standardsortierfolge verwenden, neu und führen Sie ALTER DATABASE postgres REFRESH COLLATION VERSION aus, oder bauen Sie PostgreSQL mit der richtigen Bibliotheksversion.

psql (15.1 (Debian 15.1-1))

 

You wrote "But the database can not be created due to error".

It's warning, not an error. It appears when STARTING the database server (not creating). The message says that the database WAS created earlier with a different version of the sorting library.

„Sortierfolgenversion“ seems to be „sort order“ in english?

 

I tried the given command with no success. The database can not be created:

 

C:\home\kali> sudo runuser -u postgres -- /usr/share/gvm/create-postgresql-database                                                                                                     1

WARNUNG:  Version von Sortierfolge für Datenbank »postgres« stimmt nicht überein

DETAIL:  Die Datenbank wurde mit Sortierfolgenversion 2.35 erzeugt, aber das Betriebssystem hat Version 2.36.

TIP:  Bauen Sie alle Objekte in dieser Datenbank, die die Standardsortierfolge verwenden, neu und führen Sie ALTER DATABASE postgres REFRESH COLLATION VERSION aus, oder bauen Sie PostgreSQL mit der richtigen Bibliotheksversion.

[i] User _gvm already exists in PostgreSQL

WARNUNG:  Version von Sortierfolge für Datenbank »postgres« stimmt nicht überein

DETAIL:  Die Datenbank wurde mit Sortierfolgenversion 2.35 erzeugt, aber das Betriebssystem hat Version 2.36.

TIP:  Bauen Sie alle Objekte in dieser Datenbank, die die Standardsortierfolge verwenden, neu und führen Sie ALTER DATABASE postgres REFRESH COLLATION VERSION aus, oder bauen Sie PostgreSQL mit der richtigen Bibliotheksversion.

 

Unfortunately changing locales to en did not Change the language of the Messages but hopfully it is easy for an exper to find the cause of my Problems.

 

Have you tried the command ALTER DATABASE ... REFRESH COLLATION VERSION for all databases in your cluster? That was the hint in the warning.

What Needs to be done to fix this issue?

 

Sorry – yes i am a newbie with postgress.

 

Thx POW

If you ignore the warning, the database will still work, but indexes over text values won't find all entries. Numbers and dates are not affected.

Re-Indexin everything may also help.

Viele Grüße

Holger

 

-- 
Holger Jakobs, Bergisch Gladbach, Tel. +49-178-9759012
Вложения

В списке pgsql-admin по дате отправления:

Предыдущее
От: Franz Xaver
Дата:
Сообщение: Default Sort order Problem - Newbie ;-)
Следующее
От: Franz Xaver
Дата:
Сообщение: AW: Default Sort order Problem - Newbie ;-)