<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/time-travel-with-serverless-postgres-h0gzubb9x" -->

---
title: Time Travel with Serverless Postgres | daily.dev
description: Neon's database branching feature allows creating copy-on-write clones of a Postgres database at any point in time, enabling fast disaster recovery. Branches...
canonical: https://daily.dev/posts/time-travel-with-serverless-postgres-h0gzubb9x
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Time Travel with Serverless Postgres | daily.dev
og:description: Neon's database branching feature allows creating copy-on-write clones of a Postgres database at any point in time, enabling fast disaster recovery. Branches...
og:url: https://daily.dev/posts/time-travel-with-serverless-postgres-h0gzubb9x
og:image: https://api.daily.dev/og/posts/h0gZuBb9x.png
og:image:alt: Time Travel with Serverless Postgres
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Time Travel with Serverless Postgres

**[Neon](https://daily.dev/sources/neontech)** · 6 min read · 0 upvotes · 0 comments

## Summary

Neon's database branching feature allows creating copy-on-write clones of a Postgres database at any point in time, enabling fast disaster recovery. Branches can be created from the console or API using a timestamp or a specific LSN (Log Sequence Number). For precise rollback when the exact time of data loss is unknown, a binary search algorithm can be applied across a sequence of LSN-based branches to pinpoint the exact moment data corruption occurred. A Python script example demonstrates automating this process using Neon's API.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://neon.com/blog/time-travel-with-postgres>

## Similar posts on daily.dev

- [Lakebase Postgres branch-based restores for fast recovery at scale](https://daily.dev/posts/lakebase-postgres-branch-based-restores-for-fast-recovery-at-scale-gvio7wglc) · databricks · 0 upvotes · 0 comments
- [Three Ways to Use Your Snapshots](https://daily.dev/posts/three-ways-to-use-your-snapshots-cuqip9udd) · Neon · 0 upvotes · 0 comments
- [Database Branching in Postgres: Git-Style Workflows with Databricks Lakebase](https://daily.dev/posts/database-branching-in-postgres-git-style-workflows-with-databricks-lakebase-hdnh9bdho) · databricks · 23 upvotes · 0 comments
- [Inside branch-based restores in Lakebase Postgres](https://daily.dev/posts/inside-branch-based-restores-in-lakebase-postgres-udhwx0m8z) · Neon · 1 upvotes · 1 comments
- [Backstage with Lakebase](https://daily.dev/posts/backstage-with-lakebase-15djpmigs) · databricks · 0 upvotes · 0 comments

---

Tags: [#postgresql](https://daily.dev/tags/postgresql)

[View this post on daily.dev](https://daily.dev/posts/time-travel-with-serverless-postgres-h0gzubb9x)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Time Travel with Serverless Postgres","url":"https://daily.dev/posts/time-travel-with-serverless-postgres-h0gzubb9x","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/time-travel-with-serverless-postgres-h0gzubb9x"},"datePublished":"2026-07-09T06:58:03.630Z","dateModified":"2026-07-09T07:02:41.069Z","description":"Neon's database branching feature allows creating copy-on-write clones of a Postgres database at any point in time, enabling fast disaster recovery. Branches...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/43a6a93e1e74e73a74c946458c760fd4?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/43a6a93e1e74e73a74c946458c760fd4?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Neon","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Neon","logo":"https://media.daily.dev/image/upload/s--65EDghou--/f_auto/v1724339118/logos/neontech","url":"https://daily.dev/sources/neontech"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/time-travel-with-serverless-postgres-h0gzubb9x","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"postgresql","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Neon","item":"https://daily.dev/sources/neontech"},{"@type":"ListItem","position":3,"name":"Time Travel with Serverless Postgres"}]}
```

