1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-11 10:01:57 +03:00

Make pg_basebackup skip temporary statistics files.

The temporary statistics files don't need to be included in the backup
because they are always reset at the beginning of the archive recovery.
This patch changes pg_basebackup so that it skips all files located in
$PGDATA/pg_stat_tmp or the directory specified by stats_temp_directory
parameter.
This commit is contained in:
Fujii Masao
2014-02-03 23:19:49 +09:00
parent 47aaebaac9
commit 3e8554a54a
4 changed files with 36 additions and 3 deletions

View File

@ -3174,7 +3174,7 @@ static struct config_string ConfigureNamesString[] =
GUC_SUPERUSER_ONLY
},
&pgstat_temp_directory,
"pg_stat_tmp",
PG_STAT_TMP_DIR,
check_canonical_path, assign_pgstat_temp_directory, NULL
},