Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a large Mysql database containing tens of tables which I need to convert to Postgresql. I have tried a couple of ancient Perl scripts which I found here and there but none of them did the job correctly. So wondering if there is any free and efficient tool/script which you have tried and actually does the conversion with the least hassle.


share|improve this question

Did you try

mysqldump --compatible=postgresql yourdatabase >dump.sql
share|improve this answer

The PostgreSQL wiki lists some resources. You've probably found some or all of the Perl scripts listed, but there are some Ruby and Python options that hopefully work. It looks like there is a wizard in the Postgres Plus Solution Pack from EnterpriseDB, too (guide).

If none of that sounds appealing, how about DBConvert? Or maybe the SQLMaestro PostgreSQL data wizard? They're not free, but if none of the free tools work for you...

share|improve this answer
Yep I tried most of the links in the PS wiki list, with no luck. As for EDB, to be honest I am worried about invisible strings attaches to so-called 'Pros' and 'solutions'. – alfish Jan 3 '12 at 3:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.