Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c1f6681

Browse files
committed
Revert "Properly check that pglz is not supported"
This reverts commit 3f272f2.
1 parent 3f272f2 commit c1f6681

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/archive.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ do_archive_push(char *wal_file_path, char *wal_file_name, bool overwrite)
6464
elog(INFO, "pg_probackup archive-push from %s to %s", absolute_wal_file_path, backup_wal_file_path);
6565

6666
#ifdef HAVE_LIBZ
67+
if (compress_alg == PGLZ_COMPRESS)
68+
elog(ERROR, "pglz compression is not supported");
6769
if (compress_alg == ZLIB_COMPRESS)
6870
is_compress = IsXLogFileName(wal_file_name);
6971
#endif

src/pg_probackup.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -410,12 +410,6 @@ main(int argc, char *argv[])
410410
if (compress_level == 0)
411411
compress_alg = NOT_DEFINED_COMPRESS;
412412

413-
#ifndef HAVE_LIBZ
414-
if ((backup_subcmd == BACKUP || backup_subcmd == ARCHIVE_PUSH) &&
415-
compress_alg == PGLZ_COMPRESS)
416-
elog(ERROR, "pglz compression is not supported");
417-
#endif
418-
419413
/* do actual operation */
420414
switch (backup_subcmd)
421415
{

0 commit comments

Comments
 (0)