Re: pgbench small bug fix - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: pgbench small bug fix
Date
Msg-id 20160304152659.GA696362@alvherre.pgsql
Whole thread Raw
In response to Re: pgbench small bug fix  (Aleksander Alekseev <a.alekseev@postgrespro.ru>)
Responses Re: pgbench small bug fix  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
Aleksander Alekseev wrote:
> > Attached is a v3 which test integers more logically. I'm a lazy
> > programmer who tends to minimize the number of key strokes.
> 
> Well. From what I can tell this patch is Ready for Committer. 

I'm not a fan of this approach either.  Would it be too complicated if
we had a global variable that indicates which thread is the progress
reporter?  We start that with thread 0, but if the reporter thread
finishes its transactions then it elects some other thread which hasn't
yet finished.  For this to work, each thread would have to maintain in a
global variable whether it has finished or not.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: VS 2015 support in src/tools/msvc
Next
From: Tom Lane
Date:
Subject: Re: postgres_fdw vs. force_parallel_mode on ppc