Re: overwrite the encoding of a database - Mailing list pgsql-general

From Andres Freund
Subject Re: overwrite the encoding of a database
Date
Msg-id 200907161125.00004.andres@anarazel.de
Whole thread Raw
In response to overwrite the encoding of a database  ("Massa, Harald Armin" <chef@ghum.de>)
List pgsql-general
On Thursday 16 July 2009 10:53:37 Massa, Harald Armin wrote:
> Hello,
>
> I have an old PostgreSQL Database which was created with encoding =
> SQL_ASCII. That is an old sin of mine; 9years ago I did not know better.
>
> Now I know better than to use SQL_ASCII.
>
> On the bright side: I am totally sure that the TEXT within that database is
> in WIN1252 / CP1252 encoding.
>
> Is there any way to overwrite the encoding-information? something like
> "udpate <specialsystemcatalog> set pg_encodingcol='xxx' where
> databasename='oldsin';
Would a dump+reload work?

Andres

pgsql-general by date:

Previous
From: "Massa, Harald Armin"
Date:
Subject: overwrite the encoding of a database
Next
From: Florian Weimer
Date:
Subject: Working around spurious unique constraint errors due to SERIALIZABLE bug