1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-01-05 13:20:31 +02:00

exclude pg_internal.init from backup

This commit is contained in:
Anastasia 2017-10-03 19:19:38 +03:00
parent 29380efb14
commit c237774d4d

View File

@ -2037,7 +2037,16 @@ parse_backup_filelist_filenames(parray *files, const char *root)
/* Check files located inside database directories */
if (filename && file->dbOid != 0)
{
if (filename[0] == 't' && isdigit(filename[1]))
if (strcmp(filename, "pg_internal.init") == 0)
{
/* Do not pg_internal.init files
* (they contain some cache entries, so it's fine) */
pgFileFree(file);
parray_remove(files, i);
i--;
continue;
}
else if (filename[0] == 't' && isdigit(filename[1]))
{
elog(VERBOSE, "temp file, filepath %s", relative);
/* Do not backup temp files */