One Postgres branch after another 0 ▲ boringSQL | Supercharge your SQL & PostgreSQL powers 35 minutes ago · Tech · hide PostgreSQL 18 clones a 6 GB database in 212 milliseconds with file_copy_method = clone, but CREATE DATABASE refuses to run while even one idle session is connected to the source. So I patched the check out. Every clone came out fine, which proved less than it looked like. The check is really about writes: commit status lives in the cluster-wide pg_xact, so a transaction that commits after the copy shows up in the clone too. Copying a database that keeps writing takes the whole cluster, and a second Postgres that comes up through crash recovery. Running one per pull request is mostly about everything around the copy: 351 lines of scripts around a single zfs clone. Continue reading on boringsql.com (15 min) Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town