Earlier quoted context omitted.
I feel that pain! I knew MySQL so well that it felt risky to use a different database, yet if I used it on a non-serious project, how would I get real-world experience? I learned a lot from a book from one of the core contributors to Postgres - https://theartofpostgresql.com/ . It has actual real world examples with realistic datasets to experiment with.
I wish this resource existed (or that I knew it existed if it did) years ago. I always seem to learn about the things that would have made my life easier after I've already done things the hard way.
Why Uber Engineering Switched from Postgres to MySQL (2016)
41–50 of 133 posts
Re: Why Uber Engineering Switched from Postgres to MySQL (2016)
#42Earlier quoted context omitted.
Just creating a new user is annoying enough. Permissions are also much more complex. What the hell are schemas?
It would be great if there was some management GUI for these tasks so you don’t have to look up the syntax for these things that in many deployments you only do once.
Re: Why Uber Engineering Switched from Postgres to MySQL (2016)
#43Earlier quoted context omitted.
Schemas are similar to databases in mysql. They serve as a namespace. In mysql you can have a database `foo` and a table `foo.bar`. In postgres you can have a schema `foo` and a table `foo.bar`. In postgres you can have multiple databases in a cluster, and multiple schemas within each of those databases.
What you are basically saying is that yes, they are much more complex.
Re: Why Uber Engineering Switched from Postgres to MySQL (2016)
#44I spent a whole decade saying "Why do I need Postgres? MySQL is fine." Started using Postgres a couple of years ago, and I now can't believe I ever lived without window functions, native arrays, custom types, etc.
I’ve wanted to try post geese but have never really had a chance - everything I do is “prepackaged” and things like Wordpress or Confluence really don’t seem to care if it is MySQL or Postgres.
Re: Why Uber Engineering Switched from Postgres to MySQL (2016)
#45I spent a whole decade saying "Why do I need Postgres? MySQL is fine." Started using Postgres a couple of years ago, and I now can't believe I ever lived without window functions, native arrays, custom types, etc.
Re: Why Uber Engineering Switched from Postgres to MySQL (2016)
#46Earlier quoted context omitted.
Define: "complicated"
Just creating a new user is annoying enough. Permissions are also much more complex. What the hell are schemas?
Re: Why Uber Engineering Switched from Postgres to MySQL (2016)
#47Earlier quoted context omitted.
Considering the US uses a weird date format, I definitely prefer the former in combination with input sanitation forcing you to thing about your actions before assuming the database will fix it for you.
Agreed. As with strong typing in programming languages, I do prefer a database to be strict in rejecting invalid inputs. MySQL does two bad things here: It accepts an invalid input plus it interprets it creatively, producing something the user most probably didn't intend. In that respect, MySQL is almost as bad as Excel creatively "interpreting" dates. Another example of a database doing improper things would be Orac…
uft8mb4 uses more bytes than necessary for most. You get 255 varchar limits with uft8mb3, I think you only get 192 characters with uft8mb4.
Re: Why Uber Engineering Switched from Postgres to MySQL (2016)
#48I spent a whole decade saying "Why do I need Postgres? MySQL is fine." Started using Postgres a couple of years ago, and I now can't believe I ever lived without window functions, native arrays, custom types, etc.
Re: Why Uber Engineering Switched from Postgres to MySQL (2016)
#49Earlier quoted context omitted.
Just creating a new user is annoying enough. Permissions are also much more complex. What the hell are schemas?
How is creating a new user complicated? The normal CREATE USER is all I've ever needed to create a new user in postgres (assuming I don't have set up the pg_hba so that I need to allow every user separately)
I remember this being a limitation in 2008.
That forced user creation always pushed me to mysql because I hate having separate users for each service because you still have to manage and account for these extra accounts.
Re: Why Uber Engineering Switched from Postgres to MySQL (2016)
#50Previous discussions: 2016: https://news.ycombinator.com/item?id=12166585 2018: https://news.ycombinator.com/item?id=17280239 Community responses: - https://news.ycombinator.com/item?id=12216680 - https://news.ycombinator.com/item?id=12179222
The response was: https://news.ycombinator.com/item?id=14222721