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:
@ -20,6 +20,9 @@
|
||||
#include "utils/relcache.h"
|
||||
|
||||
|
||||
/* Default directory to store temporary statistics data in */
|
||||
#define PG_STAT_TMP_DIR "pg_stat_tmp"
|
||||
|
||||
/* Values for track_functions GUC variable --- order is significant! */
|
||||
typedef enum TrackFunctionsLevel
|
||||
{
|
||||
|
Reference in New Issue
Block a user