Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1itPkT-00080S-Dt for pgsql-admin@arkaria.postgresql.org; Mon, 20 Jan 2020 05:37:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1itPkR-0005p9-S8 for pgsql-admin@arkaria.postgresql.org; Mon, 20 Jan 2020 05:37:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1itPkR-0005p1-Il for pgsql-admin@lists.postgresql.org; Mon, 20 Jan 2020 05:37:15 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1itPkP-0003AG-9y for pgsql-admin@postgresql.org; Mon, 20 Jan 2020 05:37:15 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 7CBE020FEB; Mon, 20 Jan 2020 05:37:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo06-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo06-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zvq8bA2B0JLw; Mon, 20 Jan 2020 05:37:10 +0000 (UTC) Received: from [192.168.2.16] (unknown [8.39.228.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 0120D2103E; Mon, 20 Jan 2020 05:37:06 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: pg_upgrade from 9.5.10 to 12 fails with encoding issue From: Scott Ribe In-Reply-To: Date: Sun, 19 Jan 2020 22:37:04 -0700 Cc: pgsql-admin@lists.postgresql.org, pgsql-admin@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <3BA55A27-5797-4CF8-BF74-DD8B9B1EE8B0@elevated-dev.com> References: To: Shrikant Bhende X-Mailer: Apple Mail (2.3608.40.2.2.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Jan 19, 2020, at 10:00 PM, Shrikant Bhende = wrote: >=20 > Hello community,=20 >=20 > 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=20 >=20 > "lc_collate values for database "postgres" do not match: old = "en_US.UTF-8", new "C.UTF-8" Failure, exiting",=20 >=20 > 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. >=20 > Thanks and regards I'm going to guess that you need --locale as well.