views:

1521

answers:

6

I've tried the tools listed here, some with more success than others, but none gave me valid postgres syntax I could use (tinyint errors etc.)

+1  A: 

Have a look at PG Foundry, extra utilities for Postgres tend to live there. I believe that the tool you're looking for does exist though.

Dana the Sane
A: 

How large is your database? What's stopping you from just writing in the SQL code since most of it is going to be the same anyway? Could we get some more information please?

Ryan Bigg
A: 

you will most likely never get a tool for such task which would do all of your job for you. be prepared to do some refactoring work yourself.

Ilya Kochetov
A: 

There is one piece of pay software listed on this postgresql page: http://www.postgresql.org/download/products/1

and this is on pgFoundry: http://pgfoundry.org/projects/mysql2pgsql/

Arthur Thomas
+2  A: 

There's a mysqldump option which makes it output PostgreSQL code:

mysqldump --compatible=postgresql ...
vog
A: 

Thanks for the answers. None of the free options worked for me, the generated sql always causes errors.

I'm suprised. Are the syntaxes so different? I know postgres has more features, but even simple snippets for creating tables + columns fail.

meleyal