pg_upgrade from 9.5.10 to 12 fails with encoding issue

From: Shrikant Bhende <shrikantpostgresql(at)gmail(dot)com>
To: pgsql-admin(at)lists(dot)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org
Subject: pg_upgrade from 9.5.10 to 12 fails with encoding issue
Date: 2020-01-20 05:00:23
Message-ID: CAMTQpJAxPKOFNmNjPCxfQzjb_mqH3sMuZ0hK138wZ4L5VAPTMQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hello community,

I am trying to upgrade a cluster of version 9.5.19 to version 12.1 but
seems like upgrade is getting failed because of database encoding issue, I
am getting below error while running pg_upgrade command with -c

"lc_collate values for database "postgres" do not match: old
"en_US.UTF-8", new "C.UTF-8" Failure, exiting",

I have tried to create new cluster f version 12 using initdb --encoding
parameter but it create encoding as C.UTF-8 only and old cluster is with
encoding en_us_UTF-8.
Kindly assist to resolve this issue.

Thanks and regards

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Ribe 2020-01-20 05:37:04 Re: pg_upgrade from 9.5.10 to 12 fails with encoding issue
Previous Message CR20 2020-01-20 00:24:40 Ver. 12.1 successfully installed on Win 10 but having trouble with jdbc jar