From: Scott Ribe <scott_ribe@elevated-dev.com>
To: Shrikant Bhende <shrikantpostgresql@gmail.com>
Cc: pgsql-admin@lists.postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_upgrade from 9.5.10 to 12 fails with encoding issue
Date: Sun, 19 Jan 2020 22:37:04 -0700
Message-ID: <3BA55A27-5797-4CF8-BF74-DD8B9B1EE8B0@elevated-dev.com> (raw)
In-Reply-To: <CAMTQpJAxPKOFNmNjPCxfQzjb_mqH3sMuZ0hK138wZ4L5VAPTMQ@mail.gmail.com>
References: <CAMTQpJAxPKOFNmNjPCxfQzjb_mqH3sMuZ0hK138wZ4L5VAPTMQ@mail.gmail.com>
> 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 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
I'm going to guess that you need --locale as well.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: scott_ribe@elevated-dev.com, shrikantpostgresql@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: pg_upgrade from 9.5.10 to 12 fails with encoding issue
In-Reply-To: <3BA55A27-5797-4CF8-BF74-DD8B9B1EE8B0@elevated-dev.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox