by matthewmacleod · 9y ago · 0 comments
(Assuming you meant MySQL there, given the later context!)
Here's the basic tradeoff, as I see it:
- Postgres is much more reliable, featureful and stable.
- Postgres is more difficult to configure for replication generally.
- There are better GUI tools available for accessing MySQL.
That's… basically it. The actual implementation of Postgres is in my experience so far beyond that of MySQL that it's difficult to make a fair comparison in terms of features, but Postgres still has a bit of catching up to do WRT administration.
Basically I can't imagine a situation in which I'd choose to use MySQL, unless it was a prerequisite for some other piece of software.
Not just that. PostgreSQL also takes care of correctness. This is not to be underestimated, and no MySQL tooling is able to weight this up.
MySQL produces silent data loss on innocent-looking SQL queries, so you have to be absolutely careful even with basic stuff like CONCAT, DATE/TIME formatting or GROUP BY. PostgreSQL throws an error and aborts the transaction whenever you are doing something stupid, so no harm was done and you can simply retry with your corrected query.
For me, this is not just an advantage, it is a game changer.
The big remaining piece now is "sane" multi-master replication.