my2pg - MySQL -> PostgreSQL dump conversion utility.
mysqldump db | ./my2pg.pl [-nds] > pgsqldump.sql vi libtypes.c make psql database < pgsqldump.txt where
my2pg utility attempts to convert MySQL database dump to Postgres's one. my2pg performs such conversions:
KEY(field)
to CREATE INDEX i_field on table (field);
It encloses dump in transaction block to prevent single errors during data load.
My2pg takes the following command-line options:
Known bugs are:
#include <postgres.h>
This file may be located not in standard compiler include path, you need to check it before compiling.
(c) 2000-2002 Maxim V. Rudensky (fonin@ziet.zhitomir.ua) (developer, maintainer)
(c) 2000 Valentine V. Danilchuk (valdan@ziet.zhitomir.ua) (original script)
Great thanks to all those people who provided feedback and make development of this tool easier.
Jeff Waugh <jaw@ic.net>
Joakim Lemström <jocke@bytewize.com> || <buddyh19@hotmail.com>
Yunliang Yu <yu@math.duke.edu>
Brad Hilton <bhilton@vpop.net>
If you are not listed here please write to me.
BSD