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:
parent
510508a72d
commit
fc3f39adf9
5
backup.c
5
backup.c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user