summaryrefslogtreecommitdiff
path: root/contrib/basic_archive/basic_archive.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/basic_archive/basic_archive.c')
-rw-r--r--contrib/basic_archive/basic_archive.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/basic_archive/basic_archive.c b/contrib/basic_archive/basic_archive.c
index c2173533228..6b550fc55f7 100644
--- a/contrib/basic_archive/basic_archive.c
+++ b/contrib/basic_archive/basic_archive.c
@@ -282,9 +282,10 @@ basic_archive_file_internal(const char *file, const char *path)
/*
* Sync the temporary file to disk and move it to its final destination.
- * This will fail if destination already exists.
+ * Note that this will overwrite any existing file, but this is only
+ * possible if someone else created the file since the stat() above.
*/
- (void) durable_rename_excl(temp, destination, ERROR);
+ (void) durable_rename(temp, destination, ERROR);
ereport(DEBUG1,
(errmsg("archived \"%s\" via basic_archive", file)));