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

Commita1a847d

Browse files
committed
Teach pg_controldata and pg_resetxlog about the new backupEndRequired field
in control file.
1 parent1d0392b commita1a847d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

‎src/bin/pg_controldata/pg_controldata.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ main(int argc, char *argv[])
232232
printf(_("Backup start location: %X/%X\n"),
233233
ControlFile.backupStartPoint.xlogid,
234234
ControlFile.backupStartPoint.xrecoff);
235+
printf(_("End-of-backup record required: %s\n"),
236+
ControlFile.backupEndRequired ?_("yes") :_("no"));
235237
printf(_("Current wal_level setting: %s\n"),
236238
wal_level_str(ControlFile.wal_level));
237239
printf(_("Current max_connections setting: %d\n"),

‎src/bin/pg_resetxlog/pg_resetxlog.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,7 @@ RewriteControlFile(void)
637637
ControlFile.minRecoveryPoint.xrecoff=0;
638638
ControlFile.backupStartPoint.xlogid=0;
639639
ControlFile.backupStartPoint.xrecoff=0;
640+
ControlFile.backupEndRequired= false;
640641

641642
/*
642643
* Force the defaults for max_* settings. The values don't really matter

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp