MySQL to PostgreSQL converter
github.com
github.com
EDIT I see it now. Still, anything that you think useful would be great :)
What's the point of having a dump format that you can't use to restore your database properly?
Does it have a health warning advising that it's not a proper dump?
You get this:
<field Field="course_id" Type="int(10)" Null="NO" Key="MUL"/>
But not this: CONSTRAINT `fk_courses_offered_class_details`
FOREIGN KEY (`course_id`)
REFERENCES `courses_offered` (`id`)or complex
Which is a mixed blessing; Aurora sounds great, but I was looking forward to getting back into PG after years of RDS being MySQL-only.
I think PostgreSQL is relatively alone in lacking it.
Simply a user might expect that upserts always succeed with either an update or insert, and never return an error (except when the consistency model is set high enough).
The problem is that many implementations of merge doesn't provide that guarantee, unbeknownst to many users. Or they are simpler databases such as sqlite (which doesn't provide the same multi-user/transaction performance). Postgres, as they are well known for, want to implement it properly. They know that application developers does not expect that they have to resubmit failed upsert. Aside: they are also working on audit features, which presents a number of implementations difficulties that upserts also does. So some time or later, probably not to far away, we will see upserts in postgres. Proper atomic, performant, nice upserts.
Works very well for me.
I think the only limitation is related to spatial data. I'm not aware of anything else.
Fortunately there was a project that reimplemented many of these functions in Postgres:
The code is even older, but fortunately the most common MySQL functions haven't changed in maybe a decade.
does the job for me