hn.today

Show HN: Peat, a fork of Neon's serverless Postgres, on Postgres 18 and 19

github.com82 points14 comments
Screenshot of Show HN: Peat, a fork of Neon's serverless Postgres, on Postgres 18 and 19

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.

Read on github.com14 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Lua as a Query Language

Lua as a Query Language

Lua can serve as a dynamic query language by expressing relational operations as Lua code that builds an AST for a Rust backend, avoiding a custom parser and Rust recompilation for ad hoc queries. Lua variables provide reusable views and built-in language features support query constructs such as filters and arithmetic. (remy.wang)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.