Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wTMVR-000Tk1-1c for pgsql-pkg-debian@arkaria.postgresql.org; Sat, 30 May 2026 16:25:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wTMVO-0068G4-1o for pgsql-pkg-debian@arkaria.postgresql.org; Sat, 30 May 2026 16:25:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wTMVO-0068Fw-0Z for pgsql-pkg-debian@lists.postgresql.org; Sat, 30 May 2026 16:25:46 +0000 Received: from smtp.osfda.org ([93.190.142.111]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wTMVL-00000000IF6-2tf0 for pgsql-pkg-debian@lists.postgresql.org; Sat, 30 May 2026 16:25:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=osfda.org; s=default; t=1780158341; bh=HjluZHzpT4KHPJAOIwTeQqoD5Hj2MYkzxu+/a3XYjx4=; h=Date:To:From:Subject:From; b=lZzBb0cxDJYyvg/HTNBu0bO2lb2iXd1lXL7ggP2fq7MoBYpDMZGzToSOcMqNez5cw wux/8JAxnUDv7S3WJAxZ1ya3c7+Ee9PCppwx7EosAUP9vMx4MXy3hovRC3SVSu87I/ uZlgfP7JRbztZygVuh+Ar0QpQ32ng06vRTUDpKIeA86DtY6FOPwECwTCXlbXer/Koc xsgBSszgs6YpCT4veELVd3XMM+lYXyFIE1eE2WOYfBZCDa45HFbCkJICs8M2rHe3t7 j8ON5FFv6fpXW4yOEbJNBU5IUfXVPTyD0St2GhtCxGTYA1CaIsA6N/x1+eGF3jYuQV ISx2VvW5q7B9Q== Received: from [192.168.1.173] (pool-68-132-226-133.nycmny.fios.verizon.net [68.132.226.133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519) (No client certificate requested) by smtp.osfda.org (MTA) with ESMTPSA id 6E68615C036F for ; Sat, 30 May 2026 18:25:41 +0200 (CEST) Content-Type: multipart/alternative; boundary="------------ycYgD41lZAqajMOw4MK05fUw" Message-ID: <007c172a-0dc7-463b-a67e-cb2f924e0080@osfda.org> Date: Sat, 30 May 2026 12:25:40 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: pgsql-pkg-debian@lists.postgresql.org From: "steve.b@osfda.org" Subject: Collation on Trixie/Debian 13... List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------ycYgD41lZAqajMOw4MK05fUw Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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.../ --------------ycYgD41lZAqajMOw4MK05fUw Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

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...


--------------ycYgD41lZAqajMOw4MK05fUw--