Re: Fix for Extra Parenthesis in pgbench progress message
Nathan Bossart <nathandbossart@gmail.com>
From: Nathan Bossart <nathandbossart@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Fujii Masao <masao.fujii@oss.nttdata.com>, Tatsuo Ishii <ishii@postgresql.org>, pgsql-release@lists.postgresql.org, pgsql-hackers@postgresql.org
Date: 2025-02-07T17:57:12Z
Lists: pgsql-hackers
On Fri, Feb 07, 2025 at 12:28:16PM -0500, Andres Freund wrote: > I just did pgbench -i 100 -q via ssh and noticed it was *way* slower than I > expected. Did it with debian's pgbench, no such issue. > > It's due to this patch. > > /srv/dev/build/m-opt/src/bin/pgbench/pgbench -i -s 10 -Idtg -h /tmp -q > /tmp/pgiu 2>&1 > > With HEAD: > pgbench -i -s 10 -Idtg -h /tmp -q 2>&1|wc > 1000114 52 1000448 > > With af35fe501af reverted: > pgbench -i -s 10 -Idtg -h /tmp -q 2>&1|wc > 6 52 340 > > Outputting that many lines to the terminal causes noticeable slowdowns even > locally and make the terminal use a *lot* more cpu cycles. Presumably we should only fputc(eol, stderr) when we actually fprintf() above this point. > Given the upcoming set of minor releases, I think it may be best for this this > patch ought to be reverted for now. +1, since we're nearing the freeze and this doesn't seem like a particularly urgent bug fix. -- nathan
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