From 7220c7b3e5c847227fbfe53bbaca326044674a6c Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Sat, 1 Apr 2017 17:04:14 +0200 Subject: [PATCH] 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 --- src/bin/pg_basebackup/pg_basebackup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pg_basebackup/pg_basebackup.c b/src/bin/pg_basebackup/pg_basebackup.c index 0a4944dd66..40ec0e17dc 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", -- 2.40.0