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

Commit14bcdb6

Browse files
committed
Don't backup temp tables.
1 parent96a5f13 commit14bcdb6

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

‎backup.c

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,8 +1262,19 @@ add_files(parray *files, const char *root, bool add_root, bool is_pgdata)
12621262
!path_is_prefix_of_path("pg_tblspc",relative))
12631263
continue;
12641264

1265-
path_len=strlen(file->path);
1265+
/* Get file name from path */
1266+
fname=last_dir_separator(relative);
12661267

1268+
/* Remove temp tables */
1269+
if (fname[0]=='t'&&isdigit(fname[1]))
1270+
{
1271+
pgFileFree(file);
1272+
parray_remove(list_file,i);
1273+
i--;
1274+
continue;
1275+
}
1276+
1277+
path_len=strlen(file->path);
12671278
/* Get link ptrack file to realations files */
12681279
if (path_len>6&&strncmp(file->path+(path_len-6),"ptrack",6)==0)
12691280
{
@@ -1308,7 +1319,6 @@ add_files(parray *files, const char *root, bool add_root, bool is_pgdata)
13081319
}
13091320

13101321
/* name of data file start with digit */
1311-
fname=last_dir_separator(relative);
13121322
if (fname==NULL)
13131323
fname=relative;
13141324
else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp