logoalt Hacker News

hyperionultrayesterday at 11:06 AM7 repliesview on HN

Why postgre instead of classic mysql?


Replies

purerandomnessyesterday at 11:12 AM

MySQL does not let you have transactional DDL statements (alter, create, index etc).

If you're building anything serious and your data integrity is important, use Postgres.

Postgres is much stricter, and always was. MySQL tried to introduce several strict modes to mitigate the problems that they had, but I would always recommend to use Postgres.

faangguyindiayesterday at 11:21 AM

such apps should use sqlite. it's enough for this type of app.

hk__2yesterday at 11:07 AM

Why mysql instead of postgres should be the right question nowadays.

eb0layesterday at 12:28 PM

MySQL or Postgres are the DB of choice if you want a managed database in the cloud.

Probably Postgres is there because you can use it as a queue (https://livebook.manning.com/book/just-use-postgres/chapter-...)

deweyyesterday at 11:09 AM

Postgres isn't a newcomer any more. For most projects that I see it's the default and the "classic" already.

JanSchuyesterday at 11:15 AM

Postgres is simply a battle proven technology.

throwaway613746yesterday at 12:33 PM

[dead]