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-24T23:31:55Z
Lists: pgsql-hackers
Hi Fujii-san, > On 2024/11/08 11:47, Tatsuo Ishii wrote: >> I think you need to adjust >> fprintf(stderr, "%*c\r", chars - 1, ' '); /* Clear the current line */ >> to: >> fprintf(stderr, "%*c\r", chars, ' '); /* Clear the current line */ >> since now chars does not consider the EOL char. By clearing chars - 1, >> the closing parenthesis will be left on the screen. > > You're right! I've updated the patch and attached v4. > > About the back-patch: initially, there were concerns it might be too > invasive, > as you told upthread. However, after our discussion, I think the > latest version > is straightforward enough, and I'm okay with back-patching > it. Thoughts? > > Since the minor release freeze is already in effect, if we commit this > patch, > we'll need to wait until the next minor releases are out next week > before > the commit and back-patch. Now that two minor releases are out, are you going to commit and back-patch this? -- 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