You've already forked pg_probackup
mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-07-03 05:36:50 +02:00
Revert "Properly check that pglz is not supported"
This reverts commit 3f272f2ed4
.
This commit is contained in:
@ -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);
|
elog(INFO, "pg_probackup archive-push from %s to %s", absolute_wal_file_path, backup_wal_file_path);
|
||||||
|
|
||||||
#ifdef HAVE_LIBZ
|
#ifdef HAVE_LIBZ
|
||||||
|
if (compress_alg == PGLZ_COMPRESS)
|
||||||
|
elog(ERROR, "pglz compression is not supported");
|
||||||
if (compress_alg == ZLIB_COMPRESS)
|
if (compress_alg == ZLIB_COMPRESS)
|
||||||
is_compress = IsXLogFileName(wal_file_name);
|
is_compress = IsXLogFileName(wal_file_name);
|
||||||
#endif
|
#endif
|
||||||
|
@ -410,12 +410,6 @@ main(int argc, char *argv[])
|
|||||||
if (compress_level == 0)
|
if (compress_level == 0)
|
||||||
compress_alg = NOT_DEFINED_COMPRESS;
|
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 */
|
/* do actual operation */
|
||||||
switch (backup_subcmd)
|
switch (backup_subcmd)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user