pg_basebackup: Fix progress messages when writing to a file

Peter Eisentraut <peter_e@gmx.net>

Commit: 143b54d21d37804707c27edebdbd4410891da133
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2017-12-01T14:21:34Z
Releases: 11.0
pg_basebackup: Fix progress messages when writing to a file

The progress messages print out \r to keep overwriting the same line on
the screen.  But this does not yield useful results when writing the
output to a file.  So in that case, print out \n instead.

Author: Martín Marqués <martin@2ndquadrant.com>
Reviewed-by: Arthur Zakirov <a.zakirov@postgrespro.ru>

Files

PathChange+/−
src/bin/pg_basebackup/pg_basebackup.c modified +13 −3