Postgres 18 adds file_copy_method clone for worktrees
Postgres 18 introduces a new file_copy_method setting that allows databases to be cloned instantly using filesystem-level copy-on-write functionality. This enables developers to create an independent, realistic database for every Git worktree in seconds without significantly increasing disk usage. By configuring a separate untouched template database, developers can safely run migrations and test changes in isolated environments. Open article →