public inbox for [email protected]  
help / color / mirror / Atom feed
From: Matthias Apitz <[email protected]>
To: [email protected]
Subject: COLLATION update in 13.1
Date: Mon, 24 Feb 2025 11:08:43 +0100
Message-ID: <CAHzebO-2qy2RkrhTvqPs8=6Ju_6-7C=MSumVMZxTs7zRYp-6mA@mail.gmail.com> (raw)

Hello,

When the Linux OS is updated, for example from SLES 15 SP5 to SP6, the
version of the glibc is sometimes updated, for example from 2.31 to 2.38.
For existing databases this gives on SQL a warning as:

user@rechner: $SC_SQL -Usisis sisis
WARNING:  database "sisis" 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 sisis REFRESH COLLATION VERSION, or build PostgreSQL
with the right library version.
...

This HINT works fine on 15.x and 16.x server versions.

On 13.1 it gives an SQL ERROR:

sisis=# ALTER DATABASE sisis REFRESH COLLATION VERSION;
ERROR:  syntax error at or near "REFRESH"
LINE 1: ALTER DATABASE sisis REFRESH COLLATION VERSION;


What is the procedure on 13.1 to bring the external (glibc) version in sync
with. the used version in the PostgreSQL database?


Thanks

matthias


view thread (13+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: COLLATION update in 13.1
  In-Reply-To: <CAHzebO-2qy2RkrhTvqPs8=6Ju_6-7C=MSumVMZxTs7zRYp-6mA@mail.gmail.com>

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

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