3

I just upgraded my Postgres from 12 to 15 and I keep getting this error: template database "template1" has a collation version, but no actual collation version could be determined

Here's the template1 collation info in Postgres 15: enter image description here

Any ideas on how to fix this? Please let me know if any more information is required.

Thanks!

UPDATE:

Here's the OS information:
Distributor ID: Debian.
Description: Debian GNU/Linux 10 (buster).
Release: 10.
Codename: buster.

I have a Postgres docker container so I used this to upgrade: https://github.com/tianon/docker-postgres-upgrade/tree/master/12-to-15

I did not change machines or do an OS upgrade. Here's the template1 collation info on PG 12:

enter image description here

UPDATE 2:

So I did some digging and it turns out that the en_US.utf8 collation does not exist in the pg_collation table on Postgres 12. However on Postgres 15, it does exist in that table and has a version of 2.31:

enter image description here

Is there any way to fix this?

buddy2891
  • 157
  • 10

0 Answers0