pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Holger Jakobs <holger@jakobs.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Default Sort order Problem - Newbie ;-)
Date: Wed, 23 Nov 2022 08:58:21 +0100
Message-ID: <b9c5e8c7-688c-a08e-497e-39befc62c8b3@jakobs.com> (raw)
In-Reply-To: <PA4PR07MB72001C3DD2AC9D8D8663EDB6BB0C9@PA4PR07MB7200.eurprd07.prod.outlook.com>
References: <166892540450.1063.16335933262924996258@malur.postgresql.org>
	<PA4PR07MB7200612B5FA3CE4AC98A7AF0BB0B9@PA4PR07MB7200.eurprd07.prod.outlook.com>
	<PA4PR07MB72001C3DD2AC9D8D8663EDB6BB0C9@PA4PR07MB7200.eurprd07.prod.outlook.com>

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



Attachments:

  [application/pgp-signature] OpenPGP_signature (202B, ../b9c5e8c7-688c-a08e-497e-39befc62c8b3@jakobs.com/3-OpenPGP_signature)
  download

view thread (3+ messages)  latest in thread

Message-ID: <b9c5e8c7-688c-a08e-497e-39befc62c8b3@jakobs.com>
Permalink:  ../b9c5e8c7-688c-a08e-497e-39befc62c8b3@jakobs.com/
Also on:    postgresql.org/message-id/b9c5e8c7-688c-a08e-497e-39befc62c8b3@jakobs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: holger@jakobs.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Default Sort order Problem - Newbie ;-)
  In-Reply-To: <b9c5e8c7-688c-a08e-497e-39befc62c8b3@jakobs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox