Re: Load Mysql table CSV into postgresql

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: Load Mysql table CSV into postgresql
Дата
Msg-id 51B104C3.7090401@gmail.com
обсуждение исходный текст
Ответ на Re: Load Mysql table CSV into postgresql  (Adarsh Sharma <eddy.adarsh@gmail.com>)
Список pgsql-general
On 06/06/2013 12:58 PM, Adarsh Sharma wrote:
> Thanks Adrian , i think it works but still facing problem while loading
> Mysql ( MEDIUMBLOB ) column into PG ( BYTEA ) column :
>
> test=# \encoding LATIN1;
> test=# copy jobs from '/tmp/test.csv' with DELIMITER AS  ','  QUOTE '"'
> NULL AS '\N' ESCAPE E'\\' CSV;
> ERROR:  invalid input syntax for type bytea
> CONTEXT:  COPY jobs, line 259, column wf_instance:
> "\0$0000000-120805203721153-oozie-oozi-W\0\0)<?xml version="1.0"
> encoding="UTF-8" standalone="no"?><..."
> test=#
>
> wf_instance is single mediumblob column in the table.

I have not done that conversion. All I can do is point you at this link,
courtesy of Google:

http://dba.stackexchange.com/questions/4211/how-to-migrate-large-blob-table-from-mysql-to-postgresql


Others on the list may have better ideas.

>
> Cheers


--
Adrian Klaver
adrian.klaver@gmail.com


В списке pgsql-general по дате отправления:

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: Database performs massive reads when I'm doing writes.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: User postgres unable to revoke privileges?