ADMIN Migrate postgres databases from SQL_ASCII to UNICODE
from : http://www.mail-archive.com/pgsql-admin@postgresql.org/msg14324.html
If you have blobs you must split your SQL_ASCII to convert it
with iconv.
I export my full database.
I create a new SQL_ASCII database with only tables that don't
contains blobs. (db_without_blobs)
I create a new SQL_ASCII database with only tables that contains
blobs. (db_with_blobs)
Export your db_without_blobs.
convert it with iconv
Create your UNICODE database.
import db_without_blobs.
import db_with_blobs.
(閱讀全文)