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
pull/3/merge
Magnus Hagander 9 years ago
parent 01fd6f8f2d
commit 7220c7b3e5
  1. 2
      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",

Loading…
Cancel
Save