aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/tqueue.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-06-06 09:51:56 -0400
committerRobert Haas <rhaas@postgresql.org>2016-06-06 09:51:56 -0400
commite191a6900520a28ece9393eec2fdd69f292f12c4 (patch)
treeaa400c1e3dc1471f87e1d97b4428352db823d187 /src/backend/executor/tqueue.c
parent932b97a0112aa950af51dfb26645cd67d368f1f3 (diff)
downloadpostgresql-e191a6900520a28ece9393eec2fdd69f292f12c4.tar.gz
postgresql-e191a6900520a28ece9393eec2fdd69f292f12c4.zip
pg_upgrade: Don't overwrite existing files.
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 7087166a88fe0c04fc6636d0d6d6bea1737fc1fb, but this also changes the behavior when copying files without rewriting them. Patch by Masahiko Sawada.
Diffstat (limited to 'src/backend/executor/tqueue.c')
0 files changed, 0 insertions, 0 deletions