diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 46ab60d..1f81bbf 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -1199,7 +1199,6 @@ CreateBackupStreamer(char *archive_name, char *spclocation, compressloc != COMPRESS_LOCATION_CLIENT) streamer = bbstreamer_plain_writer_new(archive_filename, archive_file); -#ifdef HAVE_LIBZ else if (compressmethod == COMPRESSION_GZIP) { strlcat(archive_filename, ".gz", sizeof(archive_filename)); @@ -1207,7 +1206,6 @@ CreateBackupStreamer(char *archive_name, char *spclocation, archive_file, compresslevel); } -#endif else { Assert(false); /* not reachable */ @@ -1256,7 +1254,6 @@ CreateBackupStreamer(char *archive_name, char *spclocation, else if (expect_unterminated_tarfile) streamer = bbstreamer_tar_terminator_new(streamer); -#ifdef HAVE_LIBZ /* * If the user has requested a server compressed archive along with archive * extraction at client then we need to decompress it. @@ -1264,7 +1261,6 @@ CreateBackupStreamer(char *archive_name, char *spclocation, if (format == 'p' && compressmethod == COMPRESSION_GZIP && compressloc == COMPRESS_LOCATION_SERVER) streamer = bbstreamer_gzip_decompressor_new(streamer); -#endif /* Return the results. */ *manifest_inject_streamer_p = manifest_inject_streamer;