Search Postgresql Archives

Re: ascii to utf-8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom Hart <tomhart@xxxxxxxxxxx> writes:
> Tommy Gildseth wrote:
>> Try editing your dump-file and change the line which reads "SET 
>> client_encoding = 'SQL_ASCII';" to "SET client_encoding = 'LATIN1';"
>> 
> I tried making the changes you specified with notepad, wordpad, gVim, 
> vim and emacs and in each case pgAdmin (and pg_restore) complain about 
> the dump header being corrupted.

You can't really manually edit a custom or tar-format archive.
What you'll need to do is use pg_restore to emit a plain SQL script
from the archive, then edit that, then load it via psql (NOT pg_restore).

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
       message can get through to the mailing list cleanly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux