Re: Database Conversion - Mailing list pgsql-admin

From Scott Marlowe
Subject Re: Database Conversion
Date
Msg-id dcc563d10809040927x6d9ea5e1m28b89678a0ef4051@mail.gmail.com
Whole thread Raw
In response to Re: Database Conversion  ("Hajek, Nick" <Nick.Hajek@Vishay.com>)
Responses Re: Database Conversion  (Carol Walter <walterc@indiana.edu>)
List pgsql-admin
On Thu, Sep 4, 2008 at 9:22 AM, Hajek, Nick <Nick.Hajek@vishay.com> wrote:
>
>>
>> Hello, All,
>>
>> I have a new faculty member who has a large database that is
>> in MySQL.  We don't support MySQL so the database needs to be
>> ported to PostgreSQL.  Her GA, who know MySQL, says that he
>> has a query that he will run that will put the data into
>> postgres.  I thought that the data would have to be output to
>> a text file and then copied into postgres.  I don't know
>> MySQL.  I've done a conversion from Oracle and this is how I
>> did it.  Is he correct that he can put the data into a
>> postgres database by running a MySQL query?  It doesn't sound
>> possible to me.
>>
>> Carol
>>
>
> You could possibly do it in a single operation using MS Access if you
> have an ODBC connection to each database.  If however the dataset is
> large, I wouldn't recommend it.  I have a number of MySQL and PostgreSQL
> dbs and I either dump sql and then import or use PHP scripts when moving
> between the two.

Also, if you can spare the afternoon to learn it, sed is an awesome
tool for ETL.  I've used it for migrating stuff from oracle to pgsql
and mangling input data to work.

pgsql-admin by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: Help!
Next
From: Carol Walter
Date:
Subject: Re: Database Conversion