Re: CREATE DATABASE with filesystem cloning
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: Nazir Bilal Yavuz <byavuz81@gmail.com>
Cc: Ranier Vilela <ranier.vf@gmail.com>, Robert Haas <robertmhaas@gmail.com>, Peter Eisentraut <peter@eisentraut.org>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-04-08T09:42:23Z
Lists: pgsql-hackers
On Wed, Mar 26, 2025 at 12:47 AM Nazir Bilal Yavuz <byavuz81@gmail.com> wrote: > Rebased version of the patch is attached. I noticed that it wasn't working on a Mac I tested because guc_tables.c needed to include <copyfile.h> and fixed that. I also did some minor editig of the docs, mostly removing the mention of specific file systems because that's bound to be incomplete (it already was to my knowledge) so I think it's better to simply say what system calls it uses, since the effects will vary. And pushed. Thanks for working on this! I think this might be a popular feature for some users.
Commits
-
Introduce file_copy_method setting.
- f78ca6f3ebbb 18.0 landed