pgsql: Use carriage returns for data insertion logs in pgbench on termi

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use carriage returns for data insertion logs in pgbench on termi
Date: 2019-12-04 02:33:52
Message-ID: E1icKUC-0000Jw-UT@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use carriage returns for data insertion logs in pgbench on terminal

This is similar to what pg_basebackup and pg_rewind do when reporting
cumulative data, and that's more user-friendly. Carriage returns are
now used when stderr points to a terminal, and newlines are used in
other cases, like a redirection to a log file.

Author: Amit Langote
Reviewed-by: Fabien Coelho
Discussion: https://postgr.es/m/CA+HiwqFNwEjPeVaQsp2L7DyCPv1Eg1guwhrVhzMYqUJUk8ULKg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d37ddb745be07502814635585cbf935363c8a33d

Modified Files
--------------
src/bin/pgbench/pgbench.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Etsuro Fujita 2019-12-04 03:50:53 pgsql: Fix whitespace.
Previous Message Michael Paquier 2019-12-04 01:09:52 pgsql: Remove unnecessary definition of CancelRequested in bin/scripts/