mirror of https://github.com/postgres/postgres
For historical reasons, copyFile and rewriteVisibilityMap took a force
argument which was always passed as true, meaning that any existing
file should be overwritten. However, it seems much safer to instead
fail if a file we need to write already exists.
While we're at it, remove the "force" argument altogether, since it was
never passed as anything other than true (and now we would never pass
it as anything other than false, if we kept it).
Noted by Andres Freund during post-commit review of the patch that added
rewriteVisibilityMap, commit 7087166a88
,
but this also changes the behavior when copying files without rewriting
them.
Patch by Masahiko Sawada.
pull/31/head
parent
932b97a011
commit
e191a69005
Loading…
Reference in new issue