It looks very interesting for integration tests
would this work inside test containers?
Instant database clones with PostgreSQL 18
11–20 of 168 posts
Re: Instant database clones with PostgreSQL 18
#12Re: Instant database clones with PostgreSQL 18
#13Raised an issue in my previous pet project for doing concurrent integration tests with real PostgreSQL DBs (https://github.com/allaboutapps/integresql) as well.
Re: Instant database clones with PostgreSQL 18
#14For anyone looking for a simple GUI for local testing/development of Postgres based applications. I built a tool a few years ago that simplifies the process: https://github.com/BenjaminFaal/pgtt
Would love to see a snapshot of the GUI as part of the README.md. Also docker link seems to be broken.
Re: Instant database clones with PostgreSQL 18
#15Re: Instant database clones with PostgreSQL 18
#16aws supports this as well: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide...
Re: Instant database clones with PostgreSQL 18
#17Works with any PG version today. Each branch is a fully isolated PostgreSQL container with its own port. ~2-5 seconds for a 100GB database.
https://github.com/elitan/velo
Main difference from PG18's approach: you get complete server isolation (useful for testing migrations, different PG configs, etc.) rather than databases sharing one instance.
Re: Instant database clones with PostgreSQL 18
#18Obligatory mention of Neon (https://neon.com/) and Xata (https://xata.io/) which both support “instant” Postgres DB branching on Postgres versions prior to 18.
Re: Instant database clones with PostgreSQL 18
#19For those who can't wait for PG18 or need full instance isolation: I built Velo, which does instant branching using ZFS snapshots instead of reflinks. Works with any PG version today. Each branch is a fully isolated PostgreSQL container with its own port. ~2-5 seconds for a 100GB database. https://github.com/elitan/velo Main difference from PG18's approach: you get complete server isolation (useful for testing migrat…
Re: Instant database clones with PostgreSQL 18
#20In theory, a database that uses immutable data structures (the hash array mapped trie popularized by Clojure) could allow instant clones on any filesystem, not just ZFS/XFS, and allow instant clones of any subset of the data, not just the entire db. I say "in theory" but I actually built this already so it's not just a theory. I never understood why there aren't more HAMT based databases.