News for hackers. Stuff that matters.
Re:When Did Postgres Become Cool? by xnx on Wednesday August 09, 2023 @02:46PM (#37066874)
Postgres became cool when the scales fell off peoples eyes and they realized that very few use cases necessitate or even benefit from "NoSQL" databases.
Re:When Did Postgres Become Cool? by dymk on Wednesday August 09, 2023 @03:09PM (#37067143)
It was way before that - it was when people got fed up with the string handling and implicit type casting stupidity of MySQL
Re:When Did Postgres Become Cool? by pessimizer on Wednesday August 09, 2023 @03:25PM (#37067328)
I think that also came late. It was when Oracle bought Sun. People who needed a drop-in replacement moved to MariaDB, but it was the last straw for people who were creating new projects and sort of hated MySQL anyway. Everybody remembered the other one.
Re:When Did Postgres Become Cool? by Avshalom on Wednesday August 09, 2023 @03:16PM (#37067230)
It was excellent and recommended over MySQL before but I agree it became "cool" in the wake of the mongodb/nosql hype->trough of disillusionment transition.
Re:When Did Postgres Become Cool? by pixl97 on Wednesday August 09, 2023 @03:53PM (#37067559)
I think a large amount of mysql was based on PHP applications with default mysql support.
Re:When Did Postgres Become Cool? by weinzierl on Wednesday August 09, 2023 @03:53PM (#37067560)
This is also my opinion and I think before that MySQL was known for fast and Postgres for features and correctness. I think the change went both ways, people realized that MySQL's casual approach only got them so far and at the same time Postgres focused more on performance without giving up its existing qualities. I think Postgres became cool when it became fast (too).
Re:When Did Postgres Become Cool? by ASalazarMX on Wednesday August 09, 2023 @04:08PM (#37067703)
The last straw was when Oracle bought MySQL, and it was forked to MariaSQL. Postgres went from the nerdy awkward kid to the nerdy cool kid, while MySQL started drinking, getting split personalities, and living off his past fame.
Re:When Did Postgres Become Cool? by CRConrad on Wednesday August 09, 2023 @04:30PM (#37067966)
> MariaSQL

MariaDB.

Re:When Did Postgres Become Cool? by hashtag-til on Wednesday August 09, 2023 @05:22PM (#37068600)
The “new” name never really stick…
Re:When Did Postgres Become Cool? by CRConrad on Thursday August 10, 2023 @08:21AM (#37075269)
Was MariaDB ever called MariaSQL? When?
Re:When Did Postgres Become Cool? by hashtag-til on Thursday August 10, 2023 @12:42PM (#37078454)
I referred to MySQL vs MariaDB
Re:When Did Postgres Become Cool? by CRConrad on Monday August 14, 2023 @06:52AM (#37119530)
Then you were even more wrong. MariaDB wasn't just "a new name" for MySQL.
Re:When Did Postgres Become Cool? by ASalazarMX on Thursday August 10, 2023 @03:13PM (#37080473)
It was my mistake, I misremembered MariaDB, but can't edit my comment now. In my defense, I've barely thought of it since 2009, when it was forked.

On the other hand, I've worked with MySQL a few times in the same period, mostly because Oracle, whatever its failings, has kept MySQL alive. Not thriving, but alive. I'm so glad they didn't buy PostgreSQL.

Re:When Did Postgres Become Cool? by hashtag-til on Thursday August 10, 2023 @03:27PM (#37080615)
It is an easy mistake to make :) - it seems like ages ago when MySQL was sort of state of the art.

I was there too when Oracle took over and everbody knew what was going to happen.

Happy also that pgsql was not a victim and is still alive!

Re:When Did Postgres Become Cool? by chx on Wednesday August 09, 2023 @06:38PM (#37069338)
I think even Sun buying MySQL already hurt MySQL and helped PostgreSQL.

Back in 2006, the startup I was with moved from PostgreSQL to MySQL because the support we were able to find was both expensive (300 USD/hr) and not satisfactory. Back then MySQL AB (this was before Sun) gave us a 10K two year deal on three servers and they had excellent response times and knowledgeable support.

For PostgreSQL the year 2010 when Salesforce bought Heroku (big plus) and Oracle bought MySQL (big minus for MySQL so indirect big plus to PostgreSQL) was the breakthrough, I would say.

That MySQL didn't get CTE and window functions until 2018 is a sad joke.

Re:When Did Postgres Become Cool? by paulddraper on Wednesday August 09, 2023 @06:04PM (#37069055)
> MySQL was known for fast and Postgres for features and correctness

That's still the case.

In particular, MySQL is faster for updates (no MVCC), but that comes at a cost that I would be hesitant to pay.

Re:When Did Postgres Become Cool? by evanelias on Thursday August 10, 2023 @12:57AM (#37072135)
InnoDB (MySQL's default storage engine since 2010) has always used MVCC. Its MVCC implementation is arguably better than Postgres's in some important ways, see e.g. https://ottertune.com/blog/the-part-of-postgresql-we-hate-th...
Re:When Did Postgres Become Cool? by code_runner on Wednesday August 09, 2023 @06:41PM (#37069368)
I came from a MSSQL background and eventually worked on an MySQL project with somebody who had a TON of MySQL experience by way of symfony.

I was explaining that not all of his non-aggregated columns were in his group by, so his query wasn't going to work.... but what do you know, MySQL will just return whatever it feels like from the group in that situation. I expected it not to run at all.

I think there are some flags etc you can use to enable to stricter behavior but it was one of the wildest footguns I've ever seen.

Re:When Did Postgres Become Cool? by weare138 on Wednesday August 09, 2023 @06:12PM (#37069128)
I think all the drama with Oracle acquiring MySQL may have contributed to the situation too.
Re:When Did Postgres Become Cool? by lsaferite on Wednesday August 09, 2023 @07:18PM (#37069708)
One of mine is the lack of transactional DDL.
Re:When Did Postgres Become Cool? by thewix on Wednesday August 09, 2023 @04:24PM (#37067885)
You get JSON types with postgres. If you aren't sharing data between tables then json is fine
Re:When Did Postgres Become Cool? by nomel on Wednesday August 09, 2023 @06:19PM (#37069162)
You get JSONB with postgres, which, to me, is a significant difference. This means you can indexing by key/value, access keys directly, without parsing the whole json string, etc.

For my use case, JSONB support completely killed most NoSQL solutions.

Re:When Did Postgres Become Cool? by thewix on Thursday August 10, 2023 @10:51PM (#37084566)
Sorry, I should have said JSONB. Do you still consider a table with a single JSONB column SQL or NoSQL? Sure, it may be contained within a RDBMS but you are treating it more like a document store than a relationship database.
Re:When Did Postgres Become Cool? by nemo44x on Wednesday August 09, 2023 @06:16PM (#37069150)
NoSQL is as popular as it has ever been though. Many of those most popular NoSQL DBs have outgrown the general database market for a decade and it doesn’t look to be slowing down.

Saying that, SQL databases are still the king by a wide margin. Postgres has grown more at other SQL DBs expense than anything.

Re:When Did Postgres Become Cool? by xnx on Thursday August 10, 2023 @01:08AM (#37072194)
> NoSQL is as popular as it has ever been though.

Indeed. I was surprised to find that search volume is about as high as it has ever been: https://trends.google.com/trends/explore?date=all&q=nosql&hl...