TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Why should I learn PostgreSQL(MySQL to PostgreSQL switch)

2 点作者 przybytniewski超过 2 年前
Hi! I want to start a tough discussion: why should I learn PostgreSQL, spend time on that &amp; migrate all my projects to PostgreSQL over MySQL?<p>Currently, for years I&#x27;m fully into MySQL. What makes it worth the time to jump into PostgreSQL? How does it help you? Is PostgreSQL better than MySQL? Why?<p>What&#x27;s your experience with that? Is there anyone who switched from MySQL to PostgreSQL and wants to share their thoughts?

2 条评论

iknownothow超过 2 年前
I would recommend Postgres and the best reason I can give is its very good &quot;extension&quot; ecosystem [1][2].<p>But I wouldn&#x27;t go so far as migrating existing projects from MySQL to Postgres. Use Postgres on your new projects and let the old ones continue to use MySQL unless you had very good reasons to migrate.<p>[1] <a href="https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;current&#x2F;contrib.html" rel="nofollow">https:&#x2F;&#x2F;www.postgresql.org&#x2F;docs&#x2F;current&#x2F;contrib.html</a><p>[2] <a href="https:&#x2F;&#x2F;pgxn.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pgxn.org&#x2F;</a>
f1shy超过 2 年前
In my experience, we had an Oracle instance. It was <i>really</i> expensive. So I started to search for alternatives. The most similar free alternative was Postgres. MySQL got &quot;disqualified&quot; because was not real ACID. I&#x27;m talking 2010 or so... I&#x27;m not sure the current status. But take a look at it. ACID properties were very important, and for the kind of work we were doing, absolutely critical.