Re: pg_upgrade from 9.5.10 to 12 fails with encoding issue - Mailing list pgsql-admin

From Scott Ribe
Subject Re: pg_upgrade from 9.5.10 to 12 fails with encoding issue
Date
Msg-id 3BA55A27-5797-4CF8-BF74-DD8B9B1EE8B0@elevated-dev.com
Whole thread Raw
In response to pg_upgrade from 9.5.10 to 12 fails with encoding issue  (Shrikant Bhende <shrikantpostgresql@gmail.com>)
Responses Re: pg_upgrade from 9.5.10 to 12 fails with encoding issue  (Shrikant Bhende <shrikantpostgresql@gmail.com>)
List pgsql-admin
> On Jan 19, 2020, at 10:00 PM, Shrikant Bhende <shrikantpostgresql@gmail.com> wrote:
>
> 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
ofdatabase 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
onlyand old cluster is with encoding en_us_UTF-8. 
> Kindly assist to resolve this issue.
>
> Thanks and regards

I'm going to guess that you need --locale as well.




pgsql-admin by date:

Previous
From: Shrikant Bhende
Date:
Subject: pg_upgrade from 9.5.10 to 12 fails with encoding issue
Next
From: Laurenz Albe
Date:
Subject: Re: Ver. 12.1 successfully installed on Win 10 but having troublewith jdbc jar