Skip to content

Commit a1a847d

Browse files
committed
Teach pg_controldata and pg_resetxlog about the new backupEndRequired field
in control file.
1 parent 1d0392b commit a1a847d

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy