diff options
| author | Magnus Hagander | 2017-04-01 15:04:14 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2017-04-01 15:04:14 +0000 |
| commit | 7220c7b3e5c847227fbfe53bbaca326044674a6c (patch) | |
| tree | ccd24783d7d114c8c31c8426a7a52856200b6322 | |
| parent | 01fd6f8f2d15a9369768921d6fc95ac481779430 (diff) | |
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
| -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 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", |
