pgsql: Make pg_basebackup skip temporary statistics files.

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make pg_basebackup skip temporary statistics files.
Date: 2014-02-03 14:24:07
Message-ID: E1WAKRT-0007r8-Oa@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3e8554a54a95425e93fe49025ccda499a1a93173

Modified Files
--------------
contrib/pg_stat_statements/pg_stat_statements.c | 3 ++-
src/backend/replication/basebackup.c | 31 ++++++++++++++++++++++-
src/backend/utils/misc/guc.c | 2 +-
src/include/pgstat.h | 3 +++
4 files changed, 36 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2014-02-03 15:41:03 pgsql: In json code, clean up temp memory contexts after processing.
Previous Message Tom Lane 2014-02-03 14:20:24 Re: pgsql: Clean up some sloppy coding in repl_gram.y.