Neon's branching feature can be used to implement point-in-time recovery for Postgres databases. Branches are created using copy-on-write from WAL records, with a default 7-day history window. Two approaches are covered: creating a branch via the console with a new compute endpoint, or using the Neon API and TypeScript SDK to restore a branch while keeping the same connection string by reassigning the compute endpoint to the new branch and setting it as primary.

5m read timeFrom neon.com
Post cover image
Table of contents
What’s Neon?What’s Neon branching?Create a branch from a point in timeRestore the branch to a previous state while keeping the same compute endpointDeleting the old branch’s dataConclusion
3 Impressions