pgsql: pgbench: Ensure previous progress message is fully cleared when - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: pgbench: Ensure previous progress message is fully cleared when
Date
Msg-id E1tGIi3-003lF0-N0@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f1cb5e51f32960d336d55429f0f172e853043c18

Modified Files
--------------
src/bin/pgbench/pgbench.c | 26 +++++++++++++++++++-------
1 file changed, 19 insertions(+), 7 deletions(-)


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: pgbench: Ensure previous progress message is fully cleared when
Next
From: Fujii Masao
Date:
Subject: pgsql: file_fdw: Add regression tests for ON_ERROR and other options.