]> granicus.if.org Git - postgresql/commitdiff
Teach pg_controldata and pg_resetxlog about the new backupEndRequired field
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 17 Aug 2011 09:36:41 +0000 (12:36 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 17 Aug 2011 09:36:41 +0000 (12:36 +0300)
in control file.

src/bin/pg_controldata/pg_controldata.c
src/bin/pg_resetxlog/pg_resetxlog.c

index 2d52f784ae40777cd36bc364f3b2ed086d6682d7..9fafb7e8e76b5d86a1676d516bd353fff4572c0c 100644 (file)
@@ -232,6 +232,8 @@ main(int argc, char *argv[])
        printf(_("Backup start location:                %X/%X\n"),
                   ControlFile.backupStartPoint.xlogid,
                   ControlFile.backupStartPoint.xrecoff);
+       printf(_("End-of-backup record required:        %s\n"),
+                  ControlFile.backupEndRequired ? _("yes") : _("no"));
        printf(_("Current wal_level setting:            %s\n"),
                   wal_level_str(ControlFile.wal_level));
        printf(_("Current max_connections setting:      %d\n"),
index 1e1412d29db40f9b110b7c3780529319e5da62dd..5b8ae8814d50f14e16b82225e0ff4dc2a44e1d41 100644 (file)
@@ -637,6 +637,7 @@ RewriteControlFile(void)
        ControlFile.minRecoveryPoint.xrecoff = 0;
        ControlFile.backupStartPoint.xlogid = 0;
        ControlFile.backupStartPoint.xrecoff = 0;
+       ControlFile.backupEndRequired = false;
 
        /*
         * Force the defaults for max_* settings. The values don't really matter