]> granicus.if.org Git - postgresql/commit
pg_basebackup: Fix progress messages when writing to a file
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 1 Dec 2017 14:21:34 +0000 (09:21 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 1 Dec 2017 14:21:34 +0000 (09:21 -0500)
commit143b54d21d37804707c27edebdbd4410891da133
tree43527030401a5a887e903d024f4b1d3137222bc1
parent06ae669c9229270663d6c4953ceb3621e4bc2d5b
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>
src/bin/pg_basebackup/pg_basebackup.c