1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-02-09 14:33:17 +02:00

Stop backup if any tablespace is compress.

This commit is contained in:
stalkerg 2016-11-23 17:46:26 +03:00
parent 510508a72d
commit fc3f39adf9

View File

@ -1258,7 +1258,12 @@ 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_PTRACK ||
current.backup_mode == BACKUP_MODE_DIFF_PAGE)
elog(ERROR, "You can't use incremental backup with compress tablespace");
continue;
}
/* name of data file start with digit */
fname = last_dir_separator(relative);