News for hackers. Stuff that matters.
Re:MySQL 5.7.6 is out by pilif on Tuesday March 10, 2015 @10:09AM (#9177763)
>1. It's reliable/durable

I would personally contest that. I've seen MySQL corrupt tables before and the insanely unhelpful defaults which make MySQL accept and alter invalid data really don't strike me as neither reliable nor durable.

Your other points are valid reasons for sticking with MySQL though. If you're happy and the tool does what you need, that's fine.

But once you've seen what you can do as you gain access to the more advanced SQL features and once you've burned by MySQL not starting up because of data corruption, then you might want to investigate other options.

Postgres happens to be a very good alternative with good tools, predictable performance, very advanced SQL features, but also really good reliability and durability.

Re:MySQL 5.7.6 is out by kyrra on Tuesday March 10, 2015 @10:20AM (#9177813)
Corruption issues are fairly true with MyISAM engine. InnoDB did a lot to help reliability of tables (it can auto-correct them in cases where you had a hard poweroff or other related issues). No more needing to manually run table scans to detect corruption.

What "advanced SQL features" do other DB products have that you cannot do with MySQL?

Re:MySQL 5.7.6 is out by pilif on Tuesday March 10, 2015 @10:32AM (#9177884)
CTEs, range types, window functions, custom aggregates, functional indexes, conditional indexes, proper utf-8 support and once you bring Postgres with its unique features into the mix: kick-ass JSON support (including the usage of indexes), array support (any my best friend array_agg())

Regarding corruption, it's an anecdote, but my girlfriend has lost a ton of data for her thesis related to innodb corruption. It took me hours of bit-twiddling to get the data back (and into Postgres where it's safe and accessible since then - on the same hardware, so don't blame this to broken hardware)

Now I can totally accept that this might have been a one-time fluke, but I personally really have trouble trusting a DBMS once it has lost data due to causes other than user-error or hardware faults.

Re:MySQL 5.7.6 is out by kbenson on Tuesday March 10, 2015 @11:19AM (#9178174)
It's not pretty, but you can get the equivalent of range types using variables[1].

Regarding corruption, it's an anecdote, but my girlfriend has lost a ton of data for her thesis related to innodb corruption. It took me hours of bit-twiddling to get the data back (and into Postgres where it's safe and accessible since then - on the same hardware, so don't blame this to broken hardware)

It's not safe until it's backed up. I don't care if it's a $100k oracle installation, It's not safe until it's backed up. Even then it's suspect...

1: http://stackoverflow.com/questions/17147920/postgres-window-...

Re:MySQL 5.7.6 is out by ldng on Tuesday March 10, 2015 @12:31PM (#9178632)
I would add, as Dimitri Fontaine says : it is not safe until backup is tested and automatically recoverable !

https://fosdem.org/2015/schedule/event/youd_better_have_test...

Re:MySQL 5.7.6 is out by porker on Tuesday March 10, 2015 @11:30AM (#9178227)
> CTEs

Coming from a MySQL background I didn't understand the fuss over CTEs ...until I worked with a SQL Server guy. That completely opened my eyes to how _sane_ things could be, vs my MySQL work-arounds.

Made me wish I'd chosen a Microsoft route!

Re:MySQL 5.7.6 is out by JohnBooty on Tuesday March 10, 2015 @11:58AM (#9178415)
Yeah, once you've used CTEs it's impossible to go back. Same with window functions.

Good news is that Postgres has great CTE support and it was ahead of MSSQL in window functions last I checked!

Re:MySQL 5.7.6 is out by meritt on Tuesday March 10, 2015 @11:28AM (#9178218)
As a long-time and fairly technical MySQL user and only light experience with PostgreSQL, can you suggest the best reading material (in addition to the user manual) on the subject?

Comparatively, for MySQL, my recommendation would be 'High Performance MySQL'.

Re:MySQL 5.7.6 is out by parfe on Tuesday March 10, 2015 @11:50AM (#9178366)
The postgres manual. Seriously. It's all you need to forget mysql existed.

http://www.postgresql.org/docs/9.4/interactive/index.html

Re:MySQL 5.7.6 is out by neverminder on Tuesday March 10, 2015 @10:36AM (#9177909)
The list is long (if compared to Postgres particularly), but this is a rough summary: http://www.sql-workbench.net/dbms_comparison.html
Re:MySQL 5.7.6 is out by NhanH on Tuesday March 10, 2015 @10:48AM (#9177969)
Very minor thing, but funny enough, I was working with MySQL just earlier and need to use my one in a blue moon quota of Full Join ... turned out MySQL doesn't have it :( (yes, I know how to emulate it with union).
Re:MySQL 5.7.6 is out by morgo on Tuesday March 10, 2015 @10:19AM (#9177808)
In the context of this post (MySQL 5.7) it does not accept invalid data :) The default sql mode has changed.
Re:MySQL 5.7.6 is out by equoid on Tuesday March 10, 2015 @11:54AM (#9178392)
"The default sql mode has changed."

So long as it possible to redefine the mode at will on a per connection basis or on startup then the integrity of data held within MySQL cannot be guaranteed.

Re:MySQL 5.7.6 is out by morgo on Tuesday March 10, 2015 @12:34PM (#9178665)
Being able to change it on a per connection basis is required for earlier applications. If we use Wordpress as an example, upon initial connection it will set the SQL mode to what it is compatible with (magento, drupal, others also do similar).

Integrity can also not be upheld if applications lie. i.e. I always enter the same incorrect birthday if an application asks me for this, but I don't think they have a reason for it.

Re:MySQL 5.7.6 is out by tsuraan on Tuesday March 10, 2015 @11:12AM (#9178125)
So, MySQL, as of 5.7, no longer accepts dates with year 0, and it also stopped converting unrecognized date strings into the date 00-00-0000? That would be a very positive change.
Re:MySQL 5.7.6 is out by morgo on Tuesday March 10, 2015 @11:37AM (#9178278)
Yes. See slide 43 for examples of statements that now produce errors by default: http://www.slideshare.net/morgo/upcoming-changes-in-mysql-57

This will break some applications that are upgrading. I have a whitelist/blacklist suggestion on how to transition on my blog: http://www.tocker.ca/2014/09/01/suggestions-for-transitionin...

Re:MySQL 5.7.6 is out by FireBeyond on Tuesday March 10, 2015 @11:31AM (#9178235)
It has "not supported" them for a long time. But it wasn't the default, due to backward compatibility (of course the decision that lead to this in the first place is no less suspect).
Re:MySQL 5.7.6 is out by IndianAstronaut on Tuesday March 10, 2015 @12:21PM (#9178554)
I have had terrible luck with MySQL on my macbook. The db gets corrupted often and I lose my data on a regular basis.
Re:MySQL 5.7.6 is out by FireBeyond on Tuesday March 10, 2015 @11:32AM (#9178247)
Though "you shouldn't have to", my first recommendation for anyone setting up a MySQL installation is to go to the Percona Configuration Wizard and build a much more appropriate configuration file (with strict and enforcing defaults, better performance and a whole bunch of other things).