Make pg_basebackup skip temporary statistics files.
authorFujii Masao <fujii@postgresql.org>
Mon, 3 Feb 2014 14:19:49 +0000 (23:19 +0900)
committerFujii Masao <fujii@postgresql.org>
Mon, 3 Feb 2014 14:19:49 +0000 (23:19 +0900)
commit3e8554a54a95425e93fe49025ccda499a1a93173
tree34e67dfa66f2f84adbde3b69a72c326729d5d4aa
parent47aaebaac95c9000549d1a6de809e15b729231f5
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.
contrib/pg_stat_statements/pg_stat_statements.c
src/backend/replication/basebackup.c
src/backend/utils/misc/guc.c
src/include/pgstat.h