Skip to content

Commit fc3f39a

Browse files
committed
Stop backup if any tablespace is compress.
1 parent 510508a commit fc3f39a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

backup.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,12 @@ add_files(parray *files, const char *root, bool add_root, bool is_pgdata)
12581258

12591259
/* compress map file it is not data file */
12601260
if (path_len > 4 && strncmp(file->path+(path_len-4), ".cfm", 4) == 0)
1261+
{
1262+
if (current.backup_mode == BACKUP_MODE_DIFF_PTRACK ||
1263+
current.backup_mode == BACKUP_MODE_DIFF_PAGE)
1264+
elog(ERROR, "You can't use incremental backup with compress tablespace");
12611265
continue;
1266+
}
12621267

12631268
/* name of data file start with digit */
12641269
fname = last_dir_separator(relative);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy