From: | Gregory Youngblood <pgcluster(at)netio(dot)org> |
---|---|
To: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> |
Cc: | Chris Travers <chris(at)travelamericas(dot)com>, Merlin Moncure <merlin(dot)moncure(at)rcsonline(dot)com>, "Jim C(dot) Nasby" <decibel(at)decibel(dot)org>, PostgreSQL advocacy <pgsql-advocacy(at)postgresql(dot)org>, pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: [pgsql-advocacy] MySQL to PostgreSQL, was ENUM type |
Date: | 2005-07-28 02:58:05 |
Message-ID: | 26BD240E-5DA1-4F04-A4A9-31FB4E465CAA@netio.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-advocacy pgsql-general |
If linking it in directly via C would bring in the MySQL license, and
you want to avoid that, what about one of the scripting languages
such as perl or python, or possibly even ruby? Or, what about using
UnixODBC to talk to MySQL.
I've written a few perl scripts when I need to convert MySQL into
Postgres. Nothing formalized, I usually just recreate it each time I
need to do something. My needs are typically pretty simple though,
and I know what I'm converting, so it makes it easier.
I think one of the more difficult areas will be to convert unsigned
fields from mysql into postgres. For smaller sizes it is possible to
convert to postgres by moving one size up and using constraints to
restrict numbers to be positive, and possibly within the mysql range
too. But, the problem is unsigned bigint in mysql to postgresql.
There's not another larger integer size that can be used that would
allow the 18446744073709551615 (is that the max value?) max value
available in mysql. Or am I missing something?
I think running into these would be rare, but it is something to be
considered.
Greg
On Jul 27, 2005, at 7:20 PM, Christopher Kings-Lynne wrote:
>> So far, the checklist I can see includes:
>> * Maintaining conversion scripts
>>
>
> What I think we need is a C program that dumps directly from MySQL
> into PostgreSQL sql.
>
> ie. Take the mysqldump source code and just modify its output.
>
> Will inherit the MySQL license though :(
>
> Chris
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2005-07-28 03:24:25 | Re: [GENERAL] MySQL to PostgreSQL, was ENUM type |
Previous Message | Michael Glaesemann | 2005-07-28 02:39:48 | Re: [pgsql-advocacy] MySQL to PostgreSQL, was ENUM type |
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2005-07-28 03:24:25 | Re: [GENERAL] MySQL to PostgreSQL, was ENUM type |
Previous Message | Michael Glaesemann | 2005-07-28 02:39:48 | Re: [pgsql-advocacy] MySQL to PostgreSQL, was ENUM type |