]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix incorrect tps number calculation in "excluding connections establishing".
authorTatsuo Ishii <ishii@postgresql.org>
Wed, 30 Sep 2015 01:36:23 +0000 (10:36 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Wed, 30 Sep 2015 01:36:23 +0000 (10:36 +0900)
commit3c4c5acc40720a178e06da6258ce20d3c6e025ab
tree85faa950e26b53c182105dd5f103e8d958ca215c
parentd8c7bb21ea2a3122cac96b2996d3122f25c160c3
Fix incorrect tps number calculation in "excluding connections establishing".

The tolerance (larger than actual tps number) increases as the number
of threads decreases.  The bug has been there since the thread support
was introduced in 9.0. Because back patching introduces incompatible
behavior changes regarding the tps number, the fix is committed to
master and 9.5 stable branches only.

Problem spotted by me and fix proposed by Fabien COELHO. Note that his
original patch included more than fixes (a code re-factoring) which is
not related to the problem and I omitted the part.
src/bin/pgbench/pgbench.c