Re: Transfer from MySQL to PostgreSQL - Mailing list pgsql-novice

From Bruce Momjian
Subject Re: Transfer from MySQL to PostgreSQL
Date
Msg-id 200604102227.k3AMRg323689@candle.pha.pa.us
Whole thread Raw
In response to Re: Transfer from MySQL to PostgreSQL  ("Guido Barosio" <gbarosio@gmail.com>)
List 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 by date:

Previous
From:
Date:
Subject: Re: PostgreSQL a slow DB?
Next
From: Tom Lane
Date:
Subject: Re: Explain query on table with partition tables