AW: Default Sort order Problem - Newbie ;-)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello & thanks @Holger, @ Matt,

 

GVM is the „Greenbone Vulnerability Scanner“.

 

As far as i can see, the database was migratet from 14 to 15 automatically.

 

What is not in the mail – the dependent scanner Service does not start because of this.

 

I will try to use the command on the database.

 

Maybe i just did not run it on the Right database.

 

Have a good time

 

POE

Von: Holger Jakobs
Gesendet: Mittwoch, 23. November 2022 08:58
An: pgsql-admin@xxxxxxxxxxxxxxxxxxxx
Betreff: Re: Default Sort order Problem - Newbie ;-)

 

Am 23.11.22 um 03:23 schrieb Franz Xaver:

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

 


[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux