pgsql: pg_basebackup: Fix progress messages when writing to a file

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pg_basebackup: Fix progress messages when writing to a file
Date: 2017-12-01 14:25:15
Message-ID: E1eKmFf-000501-Vv@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)2ndquadrant(dot)com>
Reviewed-by: Arthur Zakirov <a(dot)zakirov(at)postgrespro(dot)ru>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/143b54d21d37804707c27edebdbd4410891da133

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2017-12-01 14:54:30 pgsql: Check channel binding flag at end of SCRAM exchange
Previous Message Robert Haas 2017-11-30 21:27:21 Re: pgsql: New C function: bms_add_range