TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Have You Ever Migrated from MySQL to PostgresQL or Otherwise?

4 pointsby leejoalmost 8 years ago
I hear this suggested in talks &#x2F; on the web frequently enough to wonder if any company has ever successfully migrated from mySQL to PostgresQL, or from database technology foo to database technology bar, without coming close to killing the company or blocking the development team from doing more profitable work? Or is this something that many people suggest but have never actually done?<p>Just move to a &quot;real&quot; database and all your problems will be solved, right? I don&#x27;t think so - you will just replace one set of problems with another. And when you&#x27;re dealing with a schema that is multiples of TB, hundreds of tables, stored procs, triggers, poorly normalised, contains a mass of undocumented domain knowledge, goes back over a decade, then it&#x27;s not going to happen.<p>If it does happen then it&#x27;s probably over a period of years, or effectively a rewrite. Databases are like mortgages, they&#x27;re technical debt that take decades to pay off.<p>So, have you ever done the migration? How did it go?

2 comments

seanharr11almost 8 years ago
Just a quick interjection: I wrote a library that migrates between any 2 relational databases. In my case, I migrated off of Oracle and onto MySQL, but the tool supports any RDBMS supported by SQLAlchemy.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;seanharr11&#x2F;etlalchemy" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;seanharr11&#x2F;etlalchemy</a><p>The best way to know is to try! It takes 4 lines of python to get you migrated.<p>PostgreSQL is a bit more feature rich in my findings, but for the majority of web development there really aren&#x27;t huge differences. In my experience, MySQL performs a bit better for lots of simple READ queries, while PostgreSQL can handle larger, more complex queries and very frequent WRITEs.
tmalyalmost 8 years ago
I migrated from a custom database to postgresql. I have to say I am much happier in terms of being able to generate complex reports.<p>The types and jsonb are also very nice.<p>I have used mysql early in my career, and I still use it for certain existing projects. I liked the simplicity of its command line, but postgresql has caught up, and they continue to add amazing features.
评论 #15086700 未加载