Skip to content

Commit

Permalink
Write "waiting for checkpoint" on regular progress row
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mhagander committed Apr 1, 2017
1 parent 01fd6f8 commit 7220c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/pg_basebackup/pg_basebackup.c
Expand Up @@ -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",
Expand Down

0 comments on commit 7220c7b

Please sign in to comment.