Re: Migrating LATIN1 dump to UNICODE db

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Laurent Perez <downloader(at)free(dot)fr>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Migrating LATIN1 dump to UNICODE db
Date: 2003-05-25 03:11:51
Message-ID: 2895.1053832311@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Laurent Perez <downloader(at)free(dot)fr> writes:
> Is there some postgres-based tool to convert or reimport a LATIN1 textfile
> dump (from a pg_dump cmd) into an UNICODE encoding database, or some kind
> of built-in converter available ?

It should "just work" to pg_dump and reload. Be careful that the reload
is done with the same pg_client_encoding setting that was used for the
dump. PG will automatically translate between different client and
server encodings ... but you have to be sure to tell it the truth about
what the client side is using.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vincent Hikida 2003-05-25 03:14:33 Re: plpgsql recursion
Previous Message Martijn van Oosterhout 2003-05-25 02:50:21 Re: network problems: -h flag not working properly