AlgoViz

PostgreSQL

medium 32 min

PostgreSQL is an open-source relational database that never overwrites a row: every change adds a new version, readers pick the version their snapshot may see, and vacuum clears away versions nobody needs.

Where it shows up

The same pattern appears across everyday software.

  • OpenAI

    A 2026 engineering post describes one primary with nearly 50 read replicas serving millions of queries per second, PgBouncer in front, and write-heavy shardable workloads moved elsewhere.

  • Notion

    In 2021 Notion described splitting its Postgres data by workspace into 480 logical shards on 32 physical databases.

  • GitLab

    Its documentation for highly available installs uses PostgreSQL with Patroni, Consul and PgBouncer, at least three nodes of each.

  • Discourse

    The forum software names Postgres as its main data store.

  • Amazon RDS Multi-AZ

    A managed example: a standby in another zone is replicated synchronously and takes over on failure.

  • Zalando and Patroni

    Patroni, which started as a fork of Governor and was formerly known as Zalando's Patroni, manages failover through a consensus store.

  • Uber

    A counterexample: in 2016 Uber wrote that its trip data moved from a single Postgres instance to Schemaless, its own store on MySQL.