Collation on Trixie/Debian 13...

From: "steve(dot)b(at)osfda(dot)org" <steve(dot)b(at)osfda(dot)org>
To: pgsql-pkg-debian(at)lists(dot)postgresql(dot)org
Subject: Collation on Trixie/Debian 13...
Date: 2026-05-30 16:25:40
Message-ID: 007c172a-0dc7-463b-a67e-cb2f924e0080@osfda.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-debian

As you might have done like me, you upgraded a server to debian 13 and
found that the _version_ of a collation you used to use in a database
(PROBABLY "en_US.utf8", but possibly others...) no longer is supported
on debian 13. And when you enter a database, you get an error and a hint
suggesting you need to refresh the collation to a newer version.

I made a */VERY/* simple script that walks the databases of a server and
updates that collation in each one. I published it at this gitlab repo:
https://gitlab.com/bitmodeler/pg-upgrade-collation

You can shell to the postgres service account and run the script from
there (AFTER YOU FIRST INSPECT IT!) You can either chmod +x the .sh
file, or source it.

You will also find notes there for a *recipe* for a more "industrial
strength" script, should your needs require that...

Respectfully,
Steve Boriotti
Senior Developer, full stack
https://www.xing.com/profile/Steve_Boriotti

/Note that this was sent to this list with a very minor typo in the
subject line ("Trexie"), which might be appreciated by Star Trek fans,
but might also confound searches. To be on the safe side, I have
corrected the subject. List manager: feel free to delete the older
message.../

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message apt.postgresql.org Repository Update 2026-06-02 15:55:50 pglast updated to version 7.14-1.pgdg+1
Previous Message steve.b@osfda.org 2026-05-30 10:03:00 Collation on Trexie/Debian 13...