Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfc3f39a

Browse files
committed
Stop backup if any tablespace is compress.
1 parent510508a commitfc3f39a

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)

[8]ページ先頭

©2009-2025 Movatter.jp