overwrite the encoding of a database

From: "Massa, Harald Armin" <chef(at)ghum(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: overwrite the encoding of a database
Date: 2009-07-16 08:53:37
Message-ID: e3e180dc0907160153n68b3131fifa55864b12a85156@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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';

Best wishes,

Harald

--
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Spielberger Straße 49
70435 Stuttgart
0173/9409607
no fx, no carrier pigeon
-
LASIK good, steroids bad?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rafael Martinez 2009-07-16 09:14:48 Problems with 8.4, FLOAT8PASSBYVAL and x86_64 GNU/Linux
Previous Message Marek Lewczuk 2009-07-16 08:51:33 Getting list of tables used within a query