pgbench: Synchronize client threads. Wait until all pgbench threads are connected before benchmarking begins. This fixes a problem where some connections could take a very long time to be established because of lock contention from earlier connections, making results unstable and bogus with high connection counts.
Author: Andres Freund <[email protected]> Author: Fabien COELHO <[email protected]> Reviewed-by: Marina Polyakova <[email protected]> Reviewed-by: Kyotaro Horiguchi <[email protected]> Reviewed-by: Hayato Kuroda <[email protected]> Reviewed-by: David Rowley <[email protected]> Discussion: https://postgr.es/m/20200227180100.zyvjwzcpiokfsqm2%40alap3.anarazel.de Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/aeb57af8e64000cc4288a7b8b8d7cf6040eae900 Modified Files -------------- src/bin/pgbench/pgbench.c | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-)
