News for hackers. Stuff that matters.
Re:SQL: 2023 Has Been Released by paulddraper on Thursday June 01, 2023 @05:03PM (#36157286)
By the time you need to shard PostgreSQL (billions of records?), you have lots and lots of resources to overcome that difficulty, a la Notion.
Re:SQL: 2023 Has Been Released by lmm on Thursday June 01, 2023 @05:39PM (#36157730)
If you want to be high-availability then you need sharding or something like it from day 1. There's still no first-class way of running PostgreSQL that doesn't give you at least a noticeable write outage from a single-machine failure.
Re:SQL: 2023 Has Been Released by hans_castorp on Friday June 02, 2023 @02:16AM (#36161696)
> If you want to be high-availability then you need sharding or something like it from day 1

Sharding has nothing to do with high-availability.

Re:SQL: 2023 Has Been Released by threeseed on Thursday June 01, 2023 @06:46PM (#36158479)
You horizontally scale for high availability as well as scalability.

And primary-secondary failover in my experience is rarely without issues.

There is a reason almost every new database aims to be distributed from the beginning.

Re:SQL: 2023 Has Been Released by paulddraper on Thursday June 01, 2023 @07:25PM (#36158824)
Primary-secondary is simple and robust. If I had a dollar for every time I saw split-brain clusters....

---

And to respond sibling comment about "noticeable" downtime....

Primary-secondary failover in <1m is very feasible. And each minute downtime is a mere 0.002% for the month.

Primary-secondary isn't what is hurting your availability.

Re:SQL: 2023 Has Been Released by threeseed on Thursday June 01, 2023 @07:49PM (#36159031)
The experience for at least some of us is that failover is not robust. At all. And that < 1m is best case scenario that still requires a person to be monitoring the process.

And given that the entire industry has moved to a distributed model despite its complexity gives you a hint as to which way the wind has been blowing for the last decade.

Re:SQL: 2023 Has Been Released by ibotty on Friday June 02, 2023 @07:56AM (#36163951)
You don't need to be that arrogant. The number-one reason why there are no new (No)SQL-Databases for one node is that the existing databases are great and you can't monetize them.

Failover is automatic for PG when using e.g. Patroni. Of course you lose active transactions and that might be a showstopper, but monitoring failover? I am curious when you'll have to do that.

Re:SQL: 2023 Has Been Released by dikei on Thursday June 01, 2023 @10:09PM (#36159997)
>> There is a reason almost every new database aims to be distributed from the beginning.

That's partly because you can't compete with the existing RDBMSs if you're single node: they are good enough already. Nobody will buy your database if you don't introduce something more novel than PostgreSQL, whether that novelty is worth it or not.