From 53a5df9c8a050fa6cf82f8c5cf8585433cb6b0e0 Mon Sep 17 00:00:00 2001 From: Anastasia Date: Mon, 13 Feb 2017 12:28:19 +0300 Subject: [PATCH] allow page mode backup of compressed files. Just remove the error message. --- backup.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/backup.c b/backup.c index 7cbcfe98..879e51c8 100644 --- a/backup.c +++ b/backup.c @@ -1415,12 +1415,7 @@ add_files(parray *files, const char *root, bool add_root, bool is_pgdata) /* compress map file it is not data file */ if (path_len > 4 && strncmp(file->path+(path_len-4), ".cfm", 4) == 0) - { - if (current.backup_mode == BACKUP_MODE_DIFF_PAGE) - elog(ERROR, "You can't use PAGE mode backup with compressed tablespace.\n" - "Try FULL or PTRACK mode instead."); continue; - } /* name of data file start with digit */ if (fname == NULL)