Re: Newline after --progress report
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2020-08-14T13:51:44Z
Lists: pgsql-hackers
Heikki Linnakangas <hlinnaka@iki.fi> writes: > While hacking on pg_rewind, this in pg_rewind's main() function caught > my eye: Good catch. > Attached is a patch to fix this, as well as a similar issue in > pg_checksums. pg_basebackup and pgbench also print progres reports like > this, but they seem correct to me. I wonder whether it'd be better to push the responsibility for this into progress_report(), by adding an additional parameter "bool last" or the like. Then the callers would not need such an unseemly amount of knowledge about what progress_report() is doing. regards, tom lane
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