Collation on Trexie/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 Trexie/Debian 13...
Date: 2026-05-30 10:03:00
Message-ID: 147d06e3-0858-40ae-91e9-6f622f29f129@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

Browse pgsql-pkg-debian by date

  From Date Subject
Next Message steve.b@osfda.org 2026-05-30 16:25:40 Collation on Trixie/Debian 13...
Previous Message apt.postgresql.org Repository Update 2026-05-29 08:51:34 postgresql-hll updated to version 2.20-1.pgdg+1