We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent96a5f13 commit14bcdb6Copy full SHA for 14bcdb6
backup.c
@@ -1262,8 +1262,19 @@ add_files(parray *files, const char *root, bool add_root, bool is_pgdata)
1262
!path_is_prefix_of_path("pg_tblspc",relative))
1263
continue;
1264
1265
-path_len=strlen(file->path);
+/* Get file name from path */
1266
+fname=last_dir_separator(relative);
1267
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);
1278
/* Get link ptrack file to realations files */
1279
if (path_len>6&&strncmp(file->path+(path_len-6),"ptrack",6)==0)
1280
{
@@ -1308,7 +1319,6 @@ add_files(parray *files, const char *root, bool add_root, bool is_pgdata)
1308
1319
}
1309
1320
1310
1321
/* name of data file start with digit */
1311
-fname=last_dir_separator(relative);
1312
1322
if (fname==NULL)
1313
1323
fname=relative;
1314
1324
else