Re: Utility to Convert MySQL to PostgreSQL

Поиск
Список
Период
Сортировка
От Sean Davis
Тема Re: Utility to Convert MySQL to PostgreSQL
Дата
Msg-id 3aa53e256f8ca89562be917411b9debb@mail.nih.gov
обсуждение исходный текст
Ответ на Re: Utility to Convert MySQL to PostgreSQL  (John DeSoi <desoi@pgedit.com>)
Ответы Re: Utility to Convert MySQL to PostgreSQL  ("Michael Avila" <mavila@mich.com>)
Список pgsql-novice
On Jul 24, 2005, at 1:16 PM, John DeSoi wrote:

>
> On Jul 24, 2005, at 12:59 PM, Michael Avila wrote:
>
> > If anyone has any info about how to convert MySQL to PostgreSQL 
> > PLEASE let
> > me know!
> >
>
> I have not tried it, but there is such a utility here:
>
> http://sqlfairy.sourceforge.net/

I have tried it, and it does about 99% of the job.  There are a few
things that are MySQL version-dependent (added in later mysql versions)
that sqlfairy doesn't deal with appropriately, but those can usually be
dealt with by a simple find/replace in the word processor or a
perl/awk/sed script.  If you are a perl user, sqlfairy is also called
SQL::Translator on cpan.

As an alternative, look in the postgresql distribution in
/contrib/mysql.  There are two scripts for doing the conversion there.

Hope this helps.
Sean


В списке pgsql-novice по дате отправления:

Предыдущее
От: John DeSoi
Дата:
Сообщение: Re: Utility to Convert MySQL to PostgreSQL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Create a row-wise conditional view