Guillaume Lelarge <guillaume(at)lelarge(dot)info> writes:> v5 patch attached.
Applied with corrections, mostly ensuring crash-safety and arrangingto clean up if the initial copy phase fails (think out-of-disk-space).
regards, tom lane