]> granicus.if.org Git - postgresql/commitdiff
Write "waiting for checkpoint" on regular progress row
authorMagnus Hagander <magnus@hagander.net>
Sat, 1 Apr 2017 15:04:14 +0000 (17:04 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sat, 1 Apr 2017 15:04:14 +0000 (17:04 +0200)
When reporting progress, make the "waiting for checkpoint" test be
overwritten by the file-based progress once it's completed. This is more
consistent with how we report the rest of the progress.

Suggested by Jeff Janes

src/bin/pg_basebackup/pg_basebackup.c

index 0a4944dd66ee861d226f69b0e805f439afedb7ae..40ec0e17dc5b3f445c0ee07285ce27b937049265 100644 (file)
@@ -1757,7 +1757,7 @@ BaseBackup(void)
                                progname);
 
        if (showprogress && !verbose)
-               fprintf(stderr, "waiting for checkpoint\n");
+               fprintf(stderr, "waiting for checkpoint\r");
 
        basebkp =
                psprintf("BASE_BACKUP LABEL '%s' %s %s %s %s %s %s",