1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-09-16 09:26:30 +02:00

Fix warning in get_backup_filelist

pg_multixact contains files which looks like db files,
but they are not.

get_backup_filelist should not pass to set_forkname files
not in db folder nor `global` folder.
This commit is contained in:
Yura Sokolov
2023-02-09 15:33:10 +03:00
parent 92a4d56cd5
commit c8909b825e

View File

@@ -1142,7 +1142,10 @@ get_backup_filelist(pgBackup *backup, bool strict)
if (!file->is_datafile || file->is_cfs)
file->size = file->uncompressed_size;
if (file->external_dir_num == 0 && S_ISREG(file->mode))
if (file->external_dir_num == 0 &&
(file->dbOid != 0 ||
path_is_prefix_of_path("global", file->rel_path)) &&
S_ISREG(file->mode))
{
bool is_datafile = file->is_datafile;
set_forkname(file);