r/programming • • Sep 24 '20

PostgreSQL 13 Released!

https://www.postgresql.org/about/news/2077/
1.3k Upvotes

236 comments sorted by

View all comments

60

u/tomma5o Sep 24 '20 edited Sep 24 '20

Sorry FE dev here, why you guys prefer postgreSQL over mySQL?

4

u/adrianjord Sep 24 '20

My biggest frustration with mySQL has been that it is not fully ACID compliant. DDL statements in mySQL implicitly end transactions. DDL statements are statements such as CREATE, UPDATE, DELETE, and so on. Since they aren't transactional, a migration in mySQL that breaks halfway through will not try to rollback and will leave your database in a half broken state because of that.

PostgreSQL on the other hand is fully ACID, everything is a transaction that can be rolled back, including DDL statements.

2

u/Loris156 Sep 25 '20

Small mistake: CREATE, ALTER, DROP are DDL statement while INSERT, UPDATE and DELETE are DML statements.

1

u/adrianjord Sep 25 '20

You're right, thanks for the correction!