Re: Fix for Extra Parenthesis in pgbench progress message
Tatsuo Ishii <ishii@postgresql.org>
From: Tatsuo Ishii <ishii@postgresql.org>
To: masao.fujii@oss.nttdata.com
Cc: btogiwarayuushi@oss.nttdata.com, pgsql-hackers@postgresql.org
Date: 2024-11-07T05:42:13Z
Lists: pgsql-hackers
>>> The patch works perfectly for the case that there is one extra brace >>> as shown in your example. However I think it will not work if there >>> are two or more extra braces. >> >> Are you suggesting adding more space characters before the carriage >> return >> in the progress reporting line, like this? > > No. I thought about dynamically calculating spaces needed to be > printed something like attached patch. > >> Since the line includes >> both >> elapsed and remaining times, its total length doesn’t change much. > > Maybe. But I am also worried about the case when we would want to > change the log line format in the future. We might introduce this kind > of bug again. By dynamically calculating the number of necessary > spaces, we don't need to think about the concern. Probably my patch is too invasive and not worth the trouble for the stable branches. What about back patching your patch to the stable stable branches, and applying my patch to the master branch? Best reagards, -- Tatsuo Ishii SRA OSS K.K. English: http://www.sraoss.co.jp/index_en/ Japanese:http://www.sraoss.co.jp
Commits
-
Fix pgbench performance issue induced by commit af35fe501.
- b6decfc1d22b 13.19 landed
- 5addea71c7c7 14.16 landed
- 499d1cf55d3d 15.11 landed
- fb056564ec5b 18.0 landed
- e35d396ec354 17.3 landed
- 21b815f92e82 16.7 landed
-
pgbench: Ensure previous progress message is fully cleared when updating.
- f1cb5e51f329 13.19 landed
- 0f13e1a78b14 14.16 landed
- 1e46f7351abc 15.11 landed
- 1cf646957135 16.7 landed
- adb103fcacdd 17.3 landed
- af35fe501af5 18.0 landed