postgres.git / summary / log / commit / refs

commit    7220c7b3e5c847227fbfe53bbaca326044674a6c
Author:   Magnus Hagander <magnus@hagander.net>
Date:     Sat Apr 01 15:04:14 2017 +0000

    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 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", [parent: 01fd6f8f2d15]