Re: Newline after --progress report - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Newline after --progress report
Date
Msg-id 1069283.1597672779@sss.pgh.pa.us
Whole thread Raw
In response to Re: Newline after --progress report  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: Newline after --progress report  (Heikki Linnakangas <hlinnaka@iki.fi>)
List pgsql-hackers
Heikki Linnakangas <hlinnaka@iki.fi> writes:
> Good point. Pushed a patch along those lines.

Uh ... you patched v12 but not v13?

Also, I'd recommend that you NOT do this:

+   fprintf(stderr, (!finished && isatty(fileno(stderr))) ? "\r" : "\n");

as it breaks printf format verification in many/most compilers.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Bharath Rupireddy
Date:
Subject: Re: Terminate the idle sessions
Next
From: Fujii Masao
Date:
Subject: Re: Is it useful to record whether plans are generic or custom?