]> git.ipfire.org Git - thirdparty/postgresql.git/commit
pgbench: Ensure previous progress message is fully cleared when updating.
authorFujii Masao <fujii@postgresql.org>
Wed, 27 Nov 2024 14:04:55 +0000 (23:04 +0900)
committerFujii Masao <fujii@postgresql.org>
Wed, 27 Nov 2024 14:05:24 +0000 (23:05 +0900)
commitf1cb5e51f32960d336d55429f0f172e853043c18
tree028114509cc097522dce54a7287c649b8babf01e
parentde01960aabc1f6f821cbf28e58162383d7300f63
pgbench: Ensure previous progress message is fully cleared when updating.

During pgbench's table initialization, progress updates could display
leftover characters from the previous message if the new message
was shorter. This commit resolves the issue by appending spaces to
the current message to fully overwrite any remaining characters from
the previous line.

Back-patch to all the supported versions.

Author: Yushi Ogiwara, Tatsuo Ishii, Fujii Masao
Reviewed-by: Tatsuo Ishii, Fujii Masao
Discussion: https://postgr.es/m/9a9b8b95b6a709877ae48ad5b0c59bb9@oss.nttdata.com
src/bin/pgbench/pgbench.c