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: | [email protected] |
Views: | Whole Thread | Raw Message | 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
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(-)
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. |