Tech article
Dbslice: Extract a slice of your production database to reproduce bugs
Community description: 3 points · 0 comments on Hacker News
Hacker News | Mar 1, 2026 | rbanffy
Automated excerpt
Extract minimal, referentially-intact database subsets for local development and debugging. But reproducing a bug often requires having the exact data that caused it. dbslice solves this by extracting only the records you need, following foreign key relationships to ensure referential integrity. dbslice extract postgres://localhost/myapp --seed "orders. id=12345" > subset. sql Safe by default -- Auto-detects and anonymizes sensitive fields (emails, phones, SSNs, etc. ) dbslice extract postgres://... --seed "orders. id=1" --depth 2 dbslice extract postgres://... --seed "orders. id=1" --direction up dbslice extract postgres://... --seed "users. id=1" --anonymize dbslice extract postgres://... --seed "users. id=1" --anonymize --redact "audit_logs.
Selected automatically from source text; not independently written or fact-checked. Read the original for full context.