|
MySQL's replication story has been mature for substantially longer than Postgres's. ~10 years ago, most of today's biggest social networks and other high-volume OLTP sites were starting to scale. Replication is essential and there was really no contest at the time. (EDIT to add specifics: pg added built-in replication in 9.0, released only 6 years ago.) Today the majority of the largest sites on the internet use MySQL either as their primary database layer or at least as an essential storage system: Facebook, Google, Twitter, LinkedIn, DropBox, Alibaba, YouTube, WordPress.com, Wikipedia, GitHub, Yahoo, Yelp, Pinterest, Etsy, Tumblr, Flickr, Uber, Box, Booking.com... and meanwhile I keep hearing about more moving from pg to mysql partially or entirely (Instagram, Lyft, etc) The result is that the MySQL ecosystem is huge. There are multiple distributions/branches, many third-party tools, expert consulting companies, knowledgeable people to hire. If you're scaling a high-volume OLTP site/app/product MySQL is a very reasonable choice. Postgres is a great database, and is a better choice than MySQL for many applications. But some people like to think it's strictly better than MySQL in absolutely every way and every conceivable situation -- this is demonstrably not the case. |
Postgres is late to the replication game but they have worked hard to make sure that replication doesn't have surprises.
The character set is another nightmare that surprises novice MySQL admins... and then the fact that it allows schema operations to destroy data by default...