From: Magnus Hagander Date: Sat, 1 Apr 2017 15:04:14 +0000 (+0200) Subject: Write "waiting for checkpoint" on regular progress row X-Git-Tag: REL_10_BETA1~422 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=7220c7b;p=postgresql.git Write "waiting for checkpoint" on regular progress row 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 --- diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 0a4944dd66e..40ec0e17dc5 100644 --- a/src/bin/pg_basebackup/pg_basebackup.c +++ b/src/bin/pg_basebackup/pg_basebackup.c @@ -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",