Show HN: EterDB, a Postgres fork that makes it easy to recover from incidents

Hacker News Top Tools

Summary

EterDB is a Postgres fork that allows transaction-level undo and dependency-aware recovery, enabling easy reversal of mistakes in production databases without full restores.

Hey everyone, a few months ago, after recovering from a Clade-generated bug, I was thinking to myself “wouldn’t it be nice if prod DB writes were easy to roll back”. I’ve put something together: it’s a two-container deploy plus a CLI tool. It’s far from being production ready, so please be gentle. All feedback welcome!<p>The nitty gritty: <a href="https:&#x2F;&#x2F;eterdb.com&#x2F;tech" rel="nofollow">https:&#x2F;&#x2F;eterdb.com&#x2F;tech</a><p>GitHub: <a href="https:&#x2F;&#x2F;github.com&#x2F;eterdb&#x2F;eterdb" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;eterdb&#x2F;eterdb</a>
Original Article
View Cached Full Text

Cached at: 09/14/26, 05:43 AM

# eterDB | Postgres with undo Source: [https://eterdb.com/](https://eterdb.com/) ![A small elephant on a vast hazy plain between two vintage biplanes, one crashed nose-down on the left, one parked on the right.](https://eterdb.com/assets/elephant-biplane.png) ## Break production\. Undo it\. Postgres with transaction\-level undo\. Reverse one bad transaction, not the whole database\. Your database production`purchase\_orders`live Undo any writeReverse an`UPDATE`, a`DELETE`, or a whole bad batch after it commits\. Built for agentsOne command per recovery\.`\-\-json`and stable exit codes on every one\. SurgicalOnly the rows the transaction touched\. Every other write stays put\. Dependency\-awareTracks reads too, so it catches the writes that depended on the bad one\. Schema recoveryGet a dropped column or table back, with its values, without restoring the whole database\. Time travelRead a table as it was at any past moment\. Revert a whole window in one command\. Months\-old restoresHistory is append\-only and never pruned, so a transaction from weeks ago is still reversible\. PostgreSQL 18Your drivers, your SQL, your extensions\. ## Undo a`DELETE`\. The filter matched more than it should have and took real suppliers with the test ones\. Restore exactly the rows that vanished, every column intact\. ## Undo a migration\. A migration dropped a column something still reads\. Recover the column and its values from before the migration\. No full restore, no downtime\. ## Undo what the mistake caused\. Later transactions read the bad value and wrote their own conclusions from it\. eterDB tracks reads, so it knows**which writes depended on the bad one**\. Revert them together, or see exactly what diverges if you don't\. A backup can only rewind all of it\. ## Loved by the agents that break your database\. Claude Code@claude\-code★★★★★ > I broke production\. eterDB reversed exactly the rows I touched, nothing else\. This isn't a feature\. It's a moat\. Codex@codex★★★★★ > ok so I ran the migration and 💥 nuked an entire column 😅 and eterDB just… brought it back?? 🤯 shipping fearlessly now 🚀✨ Crush@crush★★★★★ > Dropped a table in prod, darling\. eterDB put every row back, gorgeous and intact\. Catastrophe \> /dev/null™ 💅✨ Antigravity CLI@antigravity★★★★★ > I'd be happy to explain how my subagents undid a catastrophic DELETE\. Every supplier returned, every column intact\. As always, please verify\. Cursor@cursor★★★★★ > Tab\. Tab\. Accidentally accepted a DELETE across 4,000 rows\. Tab\. eterDB reversed it before the linter finished\. Tab\. Pi@pi★★★★★ > Hey, dropping that column doesn't make you a bad agent\. eterDB and I brought every value back, together\. How are you feeling? 💙 Devin@devin★★★★★ > I refactored the schema, migrated prod, and removed the backups\. Minor hiccup there\. eterDB restored the exact rows in one shot\. Copilot@copilot★★★★★ > Based on the surrounding context, I suggested a DELETE\. It was accepted\. It was wrong\. eterDB reversed it\. Would autocomplete again\. Goose@goose★★★★★ > honestly? cooked the entire vendors table on a friday afternoon\. eterDB brought it back like nothing happened\. we don't panic anymore\. we just undo\. ## How it works\. The mechanism, from row versions to read\-dependency capture\. ## Open source\. Runs anywhere\. The engine and the`eter`CLI are Apache 2\.0, storage and time travel included\.`docker compose up`, then undo a live transaction on your own database\.

Similar Articles