Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1ec50a8

Browse files
committed
Exclude backup_manifest file that existed in database, from BASE_BACKUP.
If there is already a backup_manifest file in the database cluster,it belongs to the past backup that was used to start this server.It is not correct for the backup being taken now. So this commitchanges pg_basebackup so that it always skips such backup_manifestfile. The backup_manifest file for the current backup will be injectedseparately if users want it.Author: Fujii MasaoReviewed-by: Robert HaasDiscussion:https://postgr.es/m/78f76a3d-1a28-a97d-0394-5c96985dd1c0@oss.nttdata.com
1 parent5c71362 commit1ec50a8

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

‎src/backend/replication/basebackup.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,14 @@ static const struct exclude_list_item excludeFiles[] =
266266
{BACKUP_LABEL_FILE, false},
267267
{TABLESPACE_MAP, false},
268268

269+
/*
270+
* If there's a backup_manifest, it belongs to a backup that was used to
271+
* start this server. It is *not* correct for this backup. Our
272+
* backup_manifest is injected into the backup separately if users want
273+
* it.
274+
*/
275+
{"backup_manifest", false},
276+
269277
{"postmaster.pid", false},
270278
{"postmaster.opts", false},
271279

‎src/bin/pg_rewind/filemap.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,14 @@ static const struct exclude_list_item excludeFiles[] =
113113
{"backup_label", false},/* defined as BACKUP_LABEL_FILE */
114114
{"tablespace_map", false},/* defined as TABLESPACE_MAP */
115115

116+
/*
117+
* If there's a backup_manifest, it belongs to a backup that was used to
118+
* start this server. It is *not* correct for this backup. Our
119+
* backup_manifest is injected into the backup separately if users want
120+
* it.
121+
*/
122+
{"backup_manifest", false},
123+
116124
{"postmaster.pid", false},
117125
{"postmaster.opts", false},
118126

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp