Re: pgbench: option delaying queries till connections establishment?

Fabien COELHO <coelho@cri.ensmp.fr>

From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Marina Polyakova <m.polyakova@postgrespro.ru>, pgsql-hackers <pgsql-hackers@postgresql.org>, kuroda.hayato@fujitsu.com
Date: 2021-01-02T20:49:01Z
Lists: pgsql-hackers
>>> It looks like macOS doesn't have pthread barriers (via cfbot 2021, now
>>> with more operating systems):
>>
>> Indeed:-(
>>
>> I'll look into that.
>
> Just for fun, the attached 0002 patch is a quick prototype of a
> replacement for that stuff that seems to work OK on a Mac here.  (I'm
> not sure if the Windows part makes sense or works.)

Thanks! That will definitely help because I do not have a Mac. I'll do 
some cleanup.

-- 
Fabien.



Commits

  1. Fix new pthread code to respect --disable-thread-safety.

  2. Add missing pthread_barrier_t.

  3. pgbench: Improve time logic.

  4. pgbench: Refactor thread portability support.

  5. pgbench: Synchronize client threads.

  6. Fix bogus logic for skipping unnecessary partcollation dependencies.