Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pHBd1-00082W-1I for pgsql-general@arkaria.postgresql.org; Sun, 15 Jan 2023 22:37:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pHBcz-0005as-GV for pgsql-general@arkaria.postgresql.org; Sun, 15 Jan 2023 22:37:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pHBcz-0005aj-6D for pgsql-general@lists.postgresql.org; Sun, 15 Jan 2023 22:37:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pHBcx-00075G-51 for pgsql-general@lists.postgresql.org; Sun, 15 Jan 2023 22:37:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 30FMbLl51743972; Sun, 15 Jan 2023 17:37:21 -0500 From: Tom Lane To: pf@pfortin.com cc: pgsql-general@lists.postgresql.org Subject: Re: pg_upgrade 13.6 to 15.1? In-reply-to: <20230115165933.473a414f.pfortin@pfortin.com> References: <20230115142732.0ec38e2a.pfortin@pfortin.com> <1650559.1673812055@sss.pgh.pa.us> <20230115153919.6d21ea50@pfortin.com> <1693377.1673816360@sss.pgh.pa.us> <20230115163808.22072dfc@pfortin.com> <20230115165933.473a414f.pfortin@pfortin.com> Comments: In-reply-to pf@pfortin.com message dated "Sun, 15 Jan 2023 16:59:33 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1743970.1673822241.1@sss.pgh.pa.us> Date: Sun, 15 Jan 2023 17:37:21 -0500 Message-ID: <1743971.1673822241@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk pf@pfortin.com writes: > encodings for database "template1" do not match: old "UTF8", new > "SQL_ASCII" Failure, exiting So you need to do the initdb under the same locale setting you used for the old DB. Looking into its LC_XXX settings should refresh your memory on what that was. regards, tom lane