News for hackers. Stuff that matters.
Re:MySQL 8.0 is now generally available by go_prodev on Thursday April 19, 2018 @10:34AM (#16876200)
Woohoo I've been eagerly awaiting this. I use redshift postgres and SQL server at work and looking to migrate from postgres to MySQL for my personal ML projects.

Window functions have been a long time coming and I personally can't wait!

Re:MySQL 8.0 is now generally available by orf on Thursday April 19, 2018 @10:38AM (#16876235)
There are a lot of postgres fans on HN, would you mind giving some more info on why you want to go from PG to MySQL?
Re:MySQL 8.0 is now generally available by boznz on Thursday April 19, 2018 @04:57PM (#16880097)
No explanation he could possibly give on HN will prevent him being down voted. Sad but true
Re:MySQL 8.0 is now generally available by cdevnull on Thursday April 19, 2018 @12:33PM (#16877300)
I did a project with postgres and symfony+doctrine.

At 80% of completion, I moved to mySql because I needed spatial index, I installed Postgis but got a lot of problems with doctrine-migration.

Re:MySQL 8.0 is now generally available by superice on Thursday April 19, 2018 @11:01AM (#16876462)
There are some nice features that MySQL lacks. Personally, the thing I like best in Postgres is transactional DDL. In MySQL, if halfway through a database transformation your migration script fails, you are in a broken state and you are on your own. Postgres rolls the whole transaction back. Ofcourse there are some other features MySQL lacks, such as variable length character columns (varchar) where you don't need to specify a maximum length.

The transactional DDL seems to be introduced in MySQL per 8.0 though

Re:MySQL 8.0 is now generally available by madenine on Thursday April 19, 2018 @11:19AM (#16876626)
The advantages of Postgres (and MariaDB) over MySQL are pretty well traveled on HN. OP wants to move from Redshift Postgres & SQL Server to MySQL - which isn't something you see very often.
Re:MySQL 8.0 is now generally available by semiquaver on Thursday April 19, 2018 @11:58AM (#16876956)
> The transactional DDL seems to be introduced in MySQL per 8.0 though

I thought so as well from the release note wording, thanks to theptip for confirming in the docs that DDL is not transactional in 8.0, just crash-safe. see https://news.ycombinator.com/item?id=16876549.

Re:MySQL 8.0 is now generally available by OldSchoolJohnny on Thursday April 19, 2018 @11:08AM (#16876541)
You want to go from Postgres TO MySQL‽ Why do you want to do that?
Re:MySQL 8.0 is now generally available by dumbfounder on Thursday April 19, 2018 @02:00PM (#16878293)
Re:MySQL 8.0 is now generally available by manigandham on Thursday April 19, 2018 @03:39PM (#16879349)
Uber really just needed a key/value store. MySQL works better when used that way since PostgreSQL has MVCC and can lead to table bloat and compaction issues.

I doubt many others ever encounter this issue since picking the correct data store is step 1.

Re:MySQL 8.0 is now generally available by evanelias on Thursday April 19, 2018 @06:56PM (#16880885)
InnoDB also has MVCC. Always has. It just uses a different strategy to avoid the table bloat and compaction issues.
Re:MySQL 8.0 is now generally available by trizinix on Thursday April 19, 2018 @10:59AM (#16876446)
As far as I am aware there is no good reason to not use MariaDB instead of MySQL. The creator of MariaDB, Monty Widenius, was on a episode of the changelog podcast if you want to hear some background as to why.
Re:MySQL 8.0 is now generally available by morgo on Thursday April 19, 2018 @11:28AM (#16876700)
Former MySQL Product Manager here (no longer affiliated).

I've been to a Monty talk about this subject, and let me say it was interesting...

Monty starts by saying that he does not acknowledge MySQL 5.6's existence since some new features are an abomination (usually citing GTIDs).

He then compares MySQL 5.5 to MariaDB (of which MariaDB is based on MySQL 5.5; so it contains the superset of features).

MySQL 5.5 was released in 2010. Support for it will end at the end of this year.

Development has diverged a lot since 2010. For a more balanced comparison, I recommend this one: https://www.percona.com/blog/2017/11/02/mysql-vs-mariadb-rea...

Re:MySQL 8.0 is now generally available by evanelias on Thursday April 19, 2018 @06:33PM (#16880756)
Monty is also the CTO of the MariaDB Corporation, which is a VC-funded entity. I would fully expect him to sing MariaDB's praises in a podcast.

Large companies have come to a different conclusion, at least so far. Among companies with very large database fleets, there's much greater usage of MySQL and Percona Server than MariaDB.

Granted, Linux distributions have leaned more towards shipping MariaDB by default instead of MySQL. This makes sense given that Oracle is, well, Oracle.

Re:MySQL 8.0 is now generally available by Murrawhip on Thursday April 19, 2018 @03:36PM (#16879319)
We switched to MariaDB on freebsd 2 or 3 years ago. We ran into a couple performance-destroying bugs and while the devs acknowledged the issues, they made it clear they wouldn't be fixed any time soon. MySQL has been solid for us though.

Just a personal experience.

Re:MySQL 8.0 is now generally available by purerandomness on Thursday April 19, 2018 @11:04AM (#16876488)
Redshift is forked off an ancient Postgres version, consider using a more recent (10 or 11 beta) real Postgres version.
Re:MySQL 8.0 is now generally available by Something1234 on Thursday April 19, 2018 @11:20AM (#16876630)
Like AWS redshift the nosql database or what? What is redshift postgres?
Re:MySQL 8.0 is now generally available by reilly3000 on Thursday April 19, 2018 @11:27AM (#16876693)
AWS Redshift is their data warehouse database. It uses Postgres syntax. DynamoDB is their NoSQL offering.
Re:MySQL 8.0 is now generally available by jdub on Thursday April 19, 2018 @11:29AM (#16876710)
Redshift is a columnar SQL database, based on an old version of PostgreSQL.