mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Exclude pg_internal.init from BASE_BACKUP
Add docs to explain this for other backup mechanisms Author: David Steele <david@pgmasters.net> Reviewed-by: Petr Jelinek <petr.jelinek@2ndQuadrant.com> et al
This commit is contained in:
@ -36,6 +36,7 @@
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/elog.h"
|
||||
#include "utils/ps_status.h"
|
||||
#include "utils/relcache.h"
|
||||
#include "utils/timestamp.h"
|
||||
|
||||
|
||||
@ -151,6 +152,9 @@ static const char *excludeFiles[] =
|
||||
/* Skip current log file temporary file */
|
||||
LOG_METAINFO_DATAFILE_TMP,
|
||||
|
||||
/* Skip relation cache because it is rebuilt on startup */
|
||||
RELCACHE_INIT_FILENAME,
|
||||
|
||||
/*
|
||||
* If there's a backup_label or tablespace_map file, it belongs to a
|
||||
* backup started by the user with pg_start_backup(). It is *not* correct
|
||||
|
5
src/backend/utils/cache/relcache.c
vendored
5
src/backend/utils/cache/relcache.c
vendored
@ -87,11 +87,6 @@
|
||||
#include "utils/tqual.h"
|
||||
|
||||
|
||||
/*
|
||||
* name of relcache init file(s), used to speed up backend startup
|
||||
*/
|
||||
#define RELCACHE_INIT_FILENAME "pg_internal.init"
|
||||
|
||||
#define RELCACHE_INIT_FILEMAGIC 0x573266 /* version ID value */
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user