Re: Transfer from MySQL to PostgreSQL
От | Bruce Momjian |
---|---|
Тема | Re: Transfer from MySQL to PostgreSQL |
Дата | |
Msg-id | 200604102227.k3AMRg323689@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: Transfer from MySQL to PostgreSQL ("Guido Barosio" <gbarosio@gmail.com>) |
Список | pgsql-novice |
Guido Barosio wrote: > Use SELECT ...INTO OUTFILE and treat the data as a csv while importing > with COPY from the pgsql side. > > > from mysql docs: The SELECT ... INTO OUTFILE 'file_name' form of > SELECT writes the selected rows to a file. The file is created on the > server host, so you must have the FILE privilege to use this syntax. > file_name cannot be an existing file, which among other things > prevents files such as /etc/passwd and database tables from being > destroyed. As of MySQL 5.0.19, the character_set_filesystem system > variable controls the interpretation of the filename. I think you also have to be careful that NULL's are transfered cleanly from one database to the other. -- Bruce Momjian http://candle.pha.pa.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +
В списке pgsql-novice по дате отправления: