diff options
Diffstat (limited to 'src/bin/pg_basebackup/pg_basebackup.c')
-rw-r--r-- | src/bin/pg_basebackup/pg_basebackup.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 169afa5645d..30efc03b830 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -1073,10 +1073,14 @@ CreateBackupStreamer(char *archive_name, char *spclocation, /* * If we're doing anything that involves understanding the contents of - * the archive, we'll need to parse it. + * the archive, we'll need to parse it. If not, we can skip parsing it, + * but the tar files the server sends are not properly terminated, so + * we'll need to add the terminator here. */ if (must_parse_archive) streamer = bbstreamer_tar_parser_new(streamer); + else + streamer = bbstreamer_tar_terminator_new(streamer); /* Return the results. */ *manifest_inject_streamer_p = manifest_inject_streamer; |