| From: | Dimitri Fontaine <dim(at)dalibo(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Cc: | "garrettmoore(at)gmail(dot)com" <garrettmoore(at)gmail(dot)com> |
| Subject: | Re: Trying to load MySQL data |
| Date: | 2007-01-10 23:32:51 |
| Message-ID: | 200701110032.54416.dim@dalibo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi,
Le mercredi 10 janvier 2007 02:54, garrettmoore(at)gmail(dot)com a écrit :
> I am working on a project where we are converting from MySQL to
> Postgres. I figured the easiest way would be to export the MySQL data
> as CSV.
You could also give pgloader a try.
It uses COPY but allows you to load good data even in the presence of errors,
and have a reject file containing erroneous data lines, to replay insertion
later.
It even allows you to reorder data for matching your columns definition, but
as of now suffer from a psycopg2 limitation : you have to provide all table
columns into your data file.
http://pgfoundry.org/projects/pgloader/
http://debian.dalibo.org/unstable/
http://debian.dalibo.org/unstable/pgloader_2.0.2.tar.gz
Hope this helps,
--
Dimitri Fontaine
http://www.dalibo.com/
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jeanna Geier | 2007-01-10 23:42:41 | Re: Problems With VIEWS |
| Previous Message | Ben | 2007-01-10 23:24:32 | Re: Postgres Replication |