News for hackers. Stuff that matters.
Re:Ask HN: What could a modern database do that PostgreSQL a... by calmoo on Sunday September 05, 2021 @06:44PM (#28428479)
CAP theorem. Choose two, it's a fundamental limitation of scaling a database.
Re:Ask HN: What could a modern database do that PostgreSQL a... by j16sdiz on Sunday September 05, 2021 @09:37PM (#28429411)
CAP theorem. You can't have guarantee for having all three all the time. But you can still have nice thing most of the time.

Even better, sometimes you can change which guarantee you need.

We can do better then "pick two"

Re:Ask HN: What could a modern database do that PostgreSQL a... by pas on Sunday September 05, 2021 @07:42PM (#28428822)
yes, but no. because in reality what we really want is not true pure AP or CP (or CA, which you can't have anyway)

https://www.youtube.com/watch?v=hUd_9FENShA

(CAP is a very important result about a very strong assumption of consistency: linearizable events, but for that you can't lose any messages [if I remember it correctly], otherwise the system will become inconsistent)

Re:Ask HN: What could a modern database do that PostgreSQL a... by calmoo on Monday September 06, 2021 @10:13AM (#28433835)
Thanks for the video, very interesting.
Re:Ask HN: What could a modern database do that PostgreSQL a... by ralusek on Sunday September 05, 2021 @11:13PM (#28429873)
I've always found CAP theorem to be better described as:

Given the need for Partitions, you must choose between prioritizing Consistency or Availability.

Re:Ask HN: What could a modern database do that PostgreSQL a... by Thaxll on Sunday September 05, 2021 @07:53PM (#28428897)
Google Spanner does the three.
Re:Ask HN: What could a modern database do that PostgreSQL a... by erik_seaberg on Sunday September 05, 2021 @11:23PM (#28429910)
> The purist answer is “no” because partitions can happen and in fact have happened at Google, and during some partitions, Spanner chooses C and forfeits A. It is technically a CP system.

— https://cloud.google.com/blog/products/databases/inside-clou...