Show HN: db-branch – database branches in seconds for AI agents and CI, via ZFS
2 comments
- Points45
- Comments17
2 comments
Story details from Hacker News ↗ · linked article on github.com.
Show HN: db-branch – database branches in seconds for AI agents and CI, via ZFS was first seen by Trendoday on Nov 15, 2026. Since then it has appeared in 175 checks on 8 different days, across 3 lists (Hacker News · Front page, Hacker News · Show HN, Hacker News · Show HN · this week). It reached #23 on Hacker News · Front page on Nov 15, 2026 UTC. It was last seen on Hacker News · Front page on Nov 15, 20:13 UTC.
Position on Hacker News · Front page at every check (lower is better).
Best rank per day (UTC).
Platform metric as reported by Hacker News.
| List | Best | Days | Checks | Last seen |
|---|---|---|---|---|
| Hacker News · Front page | #23 · Badge | 1 | 9 | |
| Hacker News · Show HN | #2 · Badge | 2 | 45 | |
| Hacker News · Show HN · this week | #24 · Badge | 7 | 121 |
A few top-level comments from Hacker News, shortened. Read the full thread on Hacker News.
cursor.execute("SET file_copy_method = 'clone'") cursor.execute( f'CREATE DATABASE "{target}" TEMPLATE "{source}" STRATEGY FILE_COPY' ) Works like a charm. Claude can set it all up for you in 20m, including branch tags and management/gc scripts. It is very familiar with this pattern and uses it well. Clones are fast…
Postgres 18 has file_copy_method = clone for this, is that used underneath or did you implement your own own?
Super interesting, I had my own dumb script that clones the DB whenever I needed to work in a feature that requires some sort of DB mutation, some times with a lot of them going, so this does sound useful. Having said that lately with the speed of AI assisted development I do this less and less...
Archived daily, weekly and monthly lists that include this entry.
Not at the moment. Its last recorded appearance was on Nov 15, 20:13 UTC.
#23 on Nov 15, 2026 UTC.
It was first seen on Nov 15, 2026 and has been on the list on 8 days (175 checks) since.
45 points and 17 comments; submitted by nu_nu11 on Nov 15, 2026.