Re: Newline after --progress report
Heikki Linnakangas <hlinnaka@iki.fi>
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-08-17T14:20:46Z
Lists: pgsql-hackers
On 17/08/2020 16:59, Tom Lane wrote: > Heikki Linnakangas <hlinnaka@iki.fi> writes: >> Good point. Pushed a patch along those lines. > > Uh ... you patched v12 but not v13? Darn, I forgot it exists. > 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. Ok. I pushed the same commit to v12 as to other branches now, to keep them in sync. I'll go fix that as a separate commit. Thanks! - Heikki
Commits
-
Avoid non-constant format string argument to fprintf().
- bff41b2b8938 13.0 landed
- aecefffc3f80 12.5 landed
- 734478200aba 14.0 landed
-
Fix printing last progress report line in client programs.
- 5ca1798f32b7 13.0 landed
- 9f44d71b06b0 12.5 landed
- d7ec8337f909 14.0 landed