diff options
author | Magnus Hagander <magnus@hagander.net> | 2017-04-01 17:04:14 +0200 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2017-04-01 17:04:14 +0200 |
commit | 7220c7b3e5c847227fbfe53bbaca326044674a6c (patch) | |
tree | ccd24783d7d114c8c31c8426a7a52856200b6322 /src | |
parent | 01fd6f8f2d15a9369768921d6fc95ac481779430 (diff) | |
download | postgresql-7220c7b3e5c847227fbfe53bbaca326044674a6c.tar.gz postgresql-7220c7b3e5c847227fbfe53bbaca326044674a6c.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_basebackup/pg_basebackup.c | 2 |
1 files changed, 1 insertions, 1 deletions
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", |