Re: How to import *.sql file to postgresql database - Mailing list pgsql-general

From Osvaldo Kussama
Subject Re: How to import *.sql file to postgresql database
Date
Msg-id AANLkTilHv0_gFydm05YFDSzZuiGSILsd5DgFtklFAYte@mail.gmail.com
Whole thread Raw
In response to Re: How to import *.sql file to postgresql database  (Andre Lopes <lopes80andre@gmail.com>)
List pgsql-general
2010/7/18 Andre Lopes <lopes80andre@gmail.com>:
> If I do this command gives me the same error:
>
> [quote]
> ERROR:  invalid byte sequence for encoding "UTF8": 0xff
> HINT:  This error can also happen if the byte sequence does not match the
> encoding expected by the server, which is controlled by "client_encoding".
> [/quote]
>
> What more can I do?
>
> Best Regards,
>
>
> On Sun, Jul 18, 2010 at 9:11 PM, Edoardo Panfili <edoardo@aspix.it> wrote:
>>
>> On 18/07/10 22.06, Andre Lopes wrote:
>>>
>>> Hi,
>>>
>>> I have a DUMP file with INSERT's commands. I need to import this data to
>>> postgresql database with the "psql" command.
>>>
>>> How can I do this task?
>>
>> I think
>>
>> psql -U user_name database_name <dump_file
>>
>> EDoardo
>>


A BOM (Byte Order Mark) case?
http://en.wikipedia.org/wiki/Byte_order_mark

http://archives.postgresql.org/pgsql-sql/2010-06/msg00065.php

Osvaldo

pgsql-general by date:

Previous
From: Andre Lopes
Date:
Subject: How to change the file encoding of a 3gb file?
Next
From: Rory Campbell-Lange
Date:
Subject: Re: How to import *.sql file to postgresql database