过来人说说, postgresql 和 mysql 究竟怎么选

7 天前
 unt
从客户要求,系统架构,公司内部技术栈,领导偏好,个人使用体验等多方面聊聊
9432 次点击
所在节点    数据库
111 条回复
seansong
7 天前
熟悉哪个用哪个,客户要求哪个用哪个,领导要求哪个用哪个
wencan
7 天前
之前都是 mysql ,现在 pg ,一样的,sql 稍有不同而已
zhouyin
7 天前
@mmmhhhddd
你的什么大数据项目 产生多少钱了?
huage
7 天前
能问这个问题的,还用选吗?
donaldturinglee
7 天前
All in PostgreSQL!
yeqizhang
6 天前
投 pg 一票
ponyfk
6 天前
我用的 pg ,如果要让我重新选的话,我肯定会用 mysql 。因为 pg 占用内存太高了,买机器都要多花点钱。
Soo0
6 天前
谁出钱谁说了算,业主不说,熟悉什么用什么
phithon
6 天前
个人使用就无脑 pg
iwdmb
6 天前
Postgres is eating the database world
no13bus
6 天前
orm 的话不在乎数据库是啥吧。还有没有说具体的场景,没法判断。
scienhub
6 天前
这里有个类似的讨论 https://www.reddit.com/r/node/comments/rv6u8u/why_do_you_choose_mysql_over_postgres/

Top 2 评论:

1. The big advantage MySQL had, which is rapidly fading, is that it was easily available on cPanel and Plesk hosts, which postgres was not. There was a time that that was 95% of non-expensive hosting.

Back in the era when PHP was everything, that was a big deal. Now, not so much.

If you have to support self-install people on cheap hosting, it can still matter, but that is a vanishing goal these days


2. I haven't found any benefits in MySQL, and I wish I could switch to Postgres.
zhouyin
6 天前
没人说 pg 的 sql 语句更严格吗 需要把 groupby 后面的字段都出现在 select 子句里
mysql 我一直以来都把 sql_mode 设为空
mistsobscure
6 天前
@FrankFang128 我昨天才想开始做一个浏览器插件哈哈,就不在这个楼里 ot 了,希望方老师之后再出点好玩的文章或者视频~
AlexHsu
6 天前
大多数系统都是拿 pg 当 mysql 用吧 没啥区别
flowerains
6 天前
mysql8.0 以上的没有那么不堪,怕就怕业务系统强制要用 5.7 的,这个可太常见了(某些草台班子框架代码好几百年不更新了,mysql 就只支持 5.7 )
ice2016
6 天前
pg
VampireDemon
6 天前
无脑 pg 啊,后期也好扩展
cooltechbs
6 天前
我在国内的时候如果自建几乎都是 MySQL ,来了硅谷发现他们都用 Postgres (以上均不分大厂小厂),我也不是很理解……
ufan0
6 天前
冲 RLS 和优秀的边缘函数选的 PG

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://tanronggui.xyz/t/1109357

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX