mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-06-06 02:07:22 +02:00
Don't backup temp tables.
This commit is contained in:
parent
96a5f13125
commit
14bcdb696d
14
backup.c
14
backup.c
@ -1262,8 +1262,19 @@ add_files(parray *files, const char *root, bool add_root, bool is_pgdata)
|
|||||||
!path_is_prefix_of_path("pg_tblspc", relative))
|
!path_is_prefix_of_path("pg_tblspc", relative))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
path_len = strlen(file->path);
|
/* Get file name from path */
|
||||||
|
fname = last_dir_separator(relative);
|
||||||
|
|
||||||
|
/* Remove temp tables */
|
||||||
|
if (fname[0] == 't' && isdigit(fname[1]))
|
||||||
|
{
|
||||||
|
pgFileFree(file);
|
||||||
|
parray_remove(list_file, i);
|
||||||
|
i--;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
path_len = strlen(file->path);
|
||||||
/* Get link ptrack file to realations files */
|
/* Get link ptrack file to realations files */
|
||||||
if (path_len > 6 && strncmp(file->path+(path_len-6), "ptrack", 6) == 0)
|
if (path_len > 6 && strncmp(file->path+(path_len-6), "ptrack", 6) == 0)
|
||||||
{
|
{
|
||||||
@ -1308,7 +1319,6 @@ add_files(parray *files, const char *root, bool add_root, bool is_pgdata)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* name of data file start with digit */
|
/* name of data file start with digit */
|
||||||
fname = last_dir_separator(relative);
|
|
||||||
if (fname == NULL)
|
if (fname == NULL)
|
||||||
fname = relative;
|
fname = relative;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user