News for hackers. Stuff that matters.
Re:The Great Migration from MongoDB to PostgreSQL by tomnipotent on Friday March 29, 2024 @07:07AM (#39862648)
Postgres as we know it has only existed for about a decade, since the post-9.x era in 2010-2014 when many of its lauded features were added. Replication, heap-only tuples, extensions, foreign data wrappers, JSON, leveraging multiple indexes, parallel index scans, reindex concurrently, JIT compilation, declarative partitioning, stored procedures, and major WAL improvements are all "recent".

I love Postgres and it's been my go-to default since 2014 and you can pry it from my cold dead hands, but it's more contemporary with Perl 6 than Perl 5 if we're talking grey beards.

Re:The Great Migration from MongoDB to PostgreSQL by Sesse__ on Friday March 29, 2024 @07:14AM (#39862680)
Extensions and stored procedures are not; they've been around for longer.

I do not actually use any of the others you listed (well, occasionally bitmap index scans, but it's not a killer). The main difference between 8.x and 15.x for me is the small stream of optimizer features and tweaks (e.g. at some point, it started being able to reorder outer joins).

Re:The Great Migration from MongoDB to PostgreSQL by tomnipotent on Friday March 29, 2024 @12:02PM (#39865650)
Postgres 8 supported functions capable of returning tuples (RETURN QUERY), but lacked transaction control and other features that CREATE PROCEDURE added in Postgres 11 (2018).

Extensions in Postgres 8 (and earlier) were also half-baked compared to 9.1 (2011), which added CREATE EXTENSION and other quality-of-life improvements including standardization.

The latest complete implementations are what most people have in mind when talking about them.

Re:The Great Migration from MongoDB to PostgreSQL by Sesse__ on Friday March 29, 2024 @06:34PM (#39869753)
Sure, there are improvements, but it's not like Postgres was a radically different beast back then.

Would I pick Postgres 15 over Postgres 8? Yes, any day of the week. But I would also readily pick Postgres 8 over most of today's databases (including e.g. the latest MySQL and MongoDB versions), for most projects, if that was the choice I had.

Re:The Great Migration from MongoDB to PostgreSQL by tomnipotent on Saturday March 30, 2024 @02:34AM (#39872378)
I would not have risked my business (or budget) on Postgres 8, even with Slony-I. My appreciation for its well-written code and thoughtful architecture simply did not outweigh what it lacked for a reliable operations experience.

MySQL foot guns were mostly under control by 2010, and it was operationally efficient to manage a cluster of MySQL servers in diverse configurations with mostly-known boundaries to what could go wrong.

The Postgres foundations are the same today, but what you can build on top is very different today than it was pre-9.x.

Re:The Great Migration from MongoDB to PostgreSQL by sph on Saturday March 30, 2024 @03:15AM (#39872580)
I operated MySQL clusters in the late 2000s. I still am surprised how many hoops you have to jump through to set up replication in PostgreSQL than what you could do - out of the box - with MySQL 15 years ago.
Re:The Great Migration from MongoDB to PostgreSQL by Sesse__ on Saturday March 30, 2024 @03:46AM (#39872735)
> I would not have risked my business (or budget) on Postgres 8, even with Slony-I.

This assumes you need replication, though. You can get pretty far without it, especially given how wide hardware you can get now.

> MySQL foot guns were mostly under control by 2010

Eh. :-) I think you would have to specify which footguns in particular.

Re:The Great Migration from MongoDB to PostgreSQL by turtles3 on Saturday March 30, 2024 @04:41AM (#39872978)
Replication can be for HA, not just for scale. All depends on your business requirements.

Also replication can be good for other operational reasons, such as zero downtime major version upgrades. Again depends on the business need/expectations.

Re:The Great Migration from MongoDB to PostgreSQL by tomnipotent on Saturday March 30, 2024 @04:55AM (#39873048)
If you're doing tens of millions in revenue and the RDBMS is critical to your operations, I'm a firm believer you need replication. Keep in mind this was the era of spinning rust and a day-old backup could take hours to restore even with a SAN/DAS. A replica was for more than just distributing load, it was for resilience to keep the business healthy and avoid a SPOF.

Risks to the business are more important to me than my enthusiasm for a technology or product.