From c1f668114ebd8e78e7483bb47717048c877729f0 Mon Sep 17 00:00:00 2001 From: Arthur Zakirov Date: Tue, 30 Jan 2018 16:06:08 +0300 Subject: [PATCH] Revert "Properly check that pglz is not supported" This reverts commit 3f272f2ed4c2b5817ff4b75f870b11ce0e89eab4. --- src/archive.c | 2 ++ src/pg_probackup.c | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/archive.c b/src/archive.c index a516b7f5..ad9e6a7b 100644 --- a/src/archive.c +++ b/src/archive.c @@ -64,6 +64,8 @@ do_archive_push(char *wal_file_path, char *wal_file_name, bool overwrite) elog(INFO, "pg_probackup archive-push from %s to %s", absolute_wal_file_path, backup_wal_file_path); #ifdef HAVE_LIBZ + if (compress_alg == PGLZ_COMPRESS) + elog(ERROR, "pglz compression is not supported"); if (compress_alg == ZLIB_COMPRESS) is_compress = IsXLogFileName(wal_file_name); #endif diff --git a/src/pg_probackup.c b/src/pg_probackup.c index e9207533..68146c30 100644 --- a/src/pg_probackup.c +++ b/src/pg_probackup.c @@ -410,12 +410,6 @@ main(int argc, char *argv[]) if (compress_level == 0) compress_alg = NOT_DEFINED_COMPRESS; -#ifndef HAVE_LIBZ - if ((backup_subcmd == BACKUP || backup_subcmd == ARCHIVE_PUSH) && - compress_alg == PGLZ_COMPRESS) - elog(ERROR, "pglz compression is not supported"); -#endif - /* do actual operation */ switch (backup_subcmd) {