Peat is a fork of Neon’s open-source serverless PostgreSQL, aimed at keeping Neon’s storage architecture compatible with current PostgreSQL releases, including versions 18 and 19. Its core design separates storage from compute: an idle database can stop while retaining its data, then wake on the next connection; branches are created through copy-on-write; and databases can be restored or branched from earlier points in their history. Read replicas can also remain asleep until needed. Peat’s maintainers say they pursued this approach because assembling similar capabilities from standard PostgreSQL, ZFS snapshots, and a custom gateway required multiple components and performed worse in their tests: branching took about 16 seconds versus under three on Neon, while restores took at least 20 seconds versus about one.
The project adds a control plane and Kubernetes operator to install and manage the platform. Operators declare a Platform with storage and machine resources, while databases are represented as Kubernetes objects; upgrades proceed in a controlled sequence, and a database’s PostgreSQL version can be changed through configuration. A quickstart creates a temporary local Kubernetes cluster, provisions a database, tests writing and reading, and demonstrates sleep and wake behavior. Peat is alpha software, although it runs its maintainer Zabaca’s production databases. The project is not affiliated with Neon or Databricks and retains the relevant Apache 2.0 and PostgreSQL licenses.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.