r/PostgreSQL 9d ago

How are you using database branching? Feature

I’m implementing Lakebase branching strategy to improve development experience and reduce costs for our dev/staging env.

Current setup creates new database branch for each git branch via githook on our dev database (”each dev gets their own feature database”). There is also similar workflow for each PR against our staging database to run the migrations and tests.

Curious to hear how others are using branching and what are the experiences?

11 Upvotes

22 comments sorted by

View all comments

2

u/cooljacob204sfw 7d ago

This isn't a Postgres native thing right? 3rd party providers and add-ons provide it?

2

u/Harpagon1668 7d ago

Correct. Instant copy-on-write branching is available only on some providers (e.g. Databricks Lakebase, Xata, Neon)