Branching
Mastering Database
Branching Workflows
Ship software faster using Neon branches
Database Branches
Neon is Postgres with instant branching built in
Instead of provisioning heavyweight database instances for every environments, you create branches that are available immediately.
1-click environments
Every branch acts like a full copy of your database created in under a second.
Branches are cost efficient, since they don’t duplicate storage and they scale to zero.
Use them as environments for development, CI runs, migrations, versioning, and more.
Branching Workflows
Starting point
Building blocks
Popular workflows
- Manage production and staging as branchesLearn how to manage production and staging with branchingLearn more
- Create one branch per PR and per developerIsolated branches for safe, production-like testingLearn more
- Create one branch per preview and per test runIsolated branches per preview or test run — no shared test DBsLearn more
- Use branches to restore instantlyRestore data, debug migrations, and audit history with branchesLearn more
- Build versioning / checkpoints for your agentVersion DBs with snapshots that sync code and dataLearn more
- Promote from dev to prod without conflictBuild a snapshot-based promotion workflow for PostgresLearn more
Next steps








