---
title: "I Dropped a Table in Production—Now What?"
description: "Neon's instant point-in-time recovery creates a new copy-on-write branch at a moment just before a dropped table."
url: "https://swe.quest/articles/i-dropped-a-table-in-production-now-what-e098e81a35749033"
canonical: "https://neon.com/blog/recover-production-database"
source: "Neon"
published: "2025-02-18"
difficulty: "medium"
kind: "How-to"
reading_minutes: 7
tags: ["postgres","databases","incident-response"]
---

# I Dropped a Table in Production—Now What?

A post on [Neon](https://swe.quest/sources/neon.md), published 2025-02-18, 7 min read, How-to. Original: [https://neon.com/blog/recover-production-database](https://neon.com/blog/recover-production-database)

## Summary

Neon's instant point-in-time recovery creates a new copy-on-write branch at a moment just before a dropped table. That branch is available in about one second regardless of database size, and production keeps running while it is created. Two recovery routes follow from this. One is to pg\_dump the table out of the recovered branch and import it into production, which keeps all data written after the drop. The other is to use Branch Restore to swap production onto the recovered branch under the same connection string, which discards post-drop writes. RDS, by contrast, restores a snapshot to a new instance and replays WAL, which can take hours for multi-terabyte databases.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Databases](https://swe.quest/tags/databases.md) (Data & databases)
- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)

## Prerequisites

- PostgreSQL basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- point-in-time recovery
- pg\_dump

## Keywords

Neon, PITR, Time Travel, Branch Restore, AWS RDS, pg\_dump, copy-on-write

## Related posts

- [Announcing Point-in-Time Restore](https://swe.quest/articles/announcing-point-in-time-restore-fde22da262d059a9.md): Neon · 2024-02-20 · Medium · 5 min read · PostgreSQL, Serverless
  Neon's Branch Restore feature, now in the Neon Console, restores a Postgres branch to any LSN or timestamp within a configurable history retention window of up to 30 days.
- [Using Neon branching for instant Point in time recovery](https://swe.quest/articles/using-neon-branching-for-instant-point-in-time-recovery-9f84c3c887a11e14.md): Neon · 2023-07-28 · Medium · 4 min read · PostgreSQL, Serverless, TypeScript
  Neon's copy-on-write branching can restore a Postgres database to an earlier point in time by creating a branch from a timestamp or LSN within the retained WAL history window (seven days by default).
- [Time Travel with Serverless Postgres](https://swe.quest/articles/time-travel-with-serverless-postgres-ce3e12c8b6286e70.md): Neon · 2022-12-07 · Medium · 9 min read · PostgreSQL, Serverless, Databases, Algorithms
  Neon's copy-on-write database branching can recover from accidental data loss by creating branches at a past point in time or at a specific Postgres WAL Log Sequence Number (LSN).
- [Practical Guide to Database Branching](https://swe.quest/articles/practical-guide-to-database-branching-8aa2f63325bcfecb.md): Neon · 2025-12-04 · Medium · 9 min read · PostgreSQL, Databases, CI/CD, Schema migrations, Testing
  Neon's copy-on-write storage makes Postgres database branches instant and cheap: each branch shares the parent's base data, gets its own autoscaling compute that scales to zero, and can be created from any point within the history retention window.
- [A Deep Dive Into Neon’s Instant PITR](https://swe.quest/articles/a-deep-dive-into-neon-s-instant-pitr-6efa2ca3d55740a4.md): Neon · 2025-03-26 · Medium · 6 min read · PostgreSQL, Storage engines, Databases
  Neon's point-in-time restore is instant because its storage is copy-on-write: compute nodes stream WAL to Paxos-replicated safekeepers, and pageservers reconstruct any page at any past LSN from image and delta layers kept in object storage.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
