summaryrefslogtreecommitdiff
path: root/contrib/pg_prewarm/autoprewarm.c
diff options
context:
space:
mode:
authorHeikki Linnakangas2020-08-17 06:27:29 +0000
committerHeikki Linnakangas2020-08-17 06:27:29 +0000
commitd7ec8337f9093b097f08f94e5ecec36303ad73fd (patch)
tree7e0e01c5b5ebb926d0229ef07c79a2dd5f4b7332 /contrib/pg_prewarm/autoprewarm.c
parentb4f16397af460d9d6ead31b86cb3e7f562806866 (diff)
Fix printing last progress report line in client programs.
A number of client programs have a "--progress" option that when printing to a TTY, updates the current line by printing a '\r' and overwriting it. After the last line, '\n' needs to be printed to move the cursor to the next line. pg_basebackup and pgbench got this right, but pg_rewind and pg_checksums were slightly wrong. pg_rewind printed the newline to stdout instead of stderr, and pg_checksums printed the newline even when not printing to a TTY. Fix them, and also add a 'finished' argument to pg_basebackup's progress_report() function, to keep it consistent with the other programs. Backpatch to v12. pg_rewind's newline was broken with the logging changes in commit cc8d415117 in v12, and pg_checksums was introduced in v12. Discussion: https://www.postgresql.org/message-id/[email protected]
Diffstat (limited to 'contrib/pg_prewarm/autoprewarm.c')
0 files changed, 0 insertions, 0 deletions