database encoding migration from a pg_dumpall set

From: Steve T <stevetucknott(at)yahoo(dot)co(dot)uk>
To: PostGreSQL <pgsql-novice(at)postgresql(dot)org>
Subject: database encoding migration from a pg_dumpall set
Date: 2022-08-13 15:10:10
Message-ID: ecf6066e7e1372c849f9d36477f999b0ad627785.camel@yahoo.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Postgresql 14.3 Fedora 36

I have been meaning to move a few databases from an ISO encoding to UTF-8 for a while. I had taken a pg_dumpall dump of
the complete instance and then created a new instance with a UTF-8 encoding and imported the pg_dumpall. The databases
were all imported ok, but still show as LATIN9/ISO... - so presumably the restore from pg_dumpall takes the instruction
for the encoding from the dump records.
Is there an official way for migrating database encodings?

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2022-08-13 15:33:47 Re: database encoding migration from a pg_dumpall set
Previous Message Bruce Momjian 2022-08-12 01:09:31 Re: switch between async to sync automatically