Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rtSQP-00Etzd-Vi for pgsql-general@arkaria.postgresql.org; Sun, 07 Apr 2024 13:19:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rtSQO-0074Xn-TA for pgsql-general@arkaria.postgresql.org; Sun, 07 Apr 2024 13:19:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rtSQO-0074Xf-Id for pgsql-general@lists.postgresql.org; Sun, 07 Apr 2024 13:19:08 +0000 Received: from docker01.sa.apana.org.au ([203.14.158.64] helo=mail.sa.apana.org.au) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rtSQF-001O74-F8 for pgsql-general@lists.postgresql.org; Sun, 07 Apr 2024 13:19:04 +0000 From: Tony Bazeley Authentication-Results: mail.sa.apana.org.au; auth=pass smtp.mailfrom=tonyb@tonyb.id.au To: pgsql-general@lists.postgresql.org Subject: Re: pg_dumpall - restoration problem- resolved Date: Sun, 07 Apr 2024 22:48:43 +0930 Message-ID: <2519686.gUQCWdUFS2@apn53> In-Reply-To: <2634671.1712451944@sss.pgh.pa.us> References: <3625230.PrqTZ78sOi@apn53> <2634671.1712451944@sss.pgh.pa.us> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Spamd-Bar: -- List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thanks Tom, Dumped in Ubuntu 22.04_1 and restore attempted using Ubuntu 22.04.3 Editing the dump file to C.UTF8 didn't solve the problem. The default for the database was en_AU.utf8 so I should have changed the=20 collation to that, but it was one field in one table of superseded data, so= I=20 just erased the collation from that field. =20 Still no idea on how it came to be there. Cheers Tony On Sunday 7 April 2024 10:35:44=E2=80=AFAM ACST Tom Lane wrote: > Tony Bazeley writes: > > I've a problem with restoring a cluster created with pg_dump_all from 1= 4.8 > > ( pg_dumpall >pgall.out and then psql -f pgall.out postgres). > > ... > > Attempting to restore to postgresql-16 results in errors > >=20 > > 2024-04-05 22:17:15.418 ACDT [6565] postgres@tonbaz ERROR: collation > > "pg_catalog.C.UTF-8" for encoding "UTF8" does not exist at character 366 > >=20 > > I don't understand the class text COLLATE pg_catalog."C.UTF-8" syntax, > > but > > select * from pg_collation shows a C.UTF8 but no C.UTF-8 >=20 > I take it you are trying to restore onto a different OS platform with > different locale naming conventions. The easiest way to deal with it > probably is to edit the dump file and change "C.UTF-8" to "C.UTF8" > everywhere. (Manually editing an 8G dump file might be no fun, but > "sed" should make short work of it.) >=20 > regards, tom lane