Re: pgbench: option delaying queries till connections establishment? - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: pgbench: option delaying queries till connections establishment?
Date
Msg-id CA+hUKG+it0+GZEZdP55fKQBuKZmu4OfXfW=qZFh7JgwVccMxCw@mail.gmail.com
Whole thread Raw
In response to Re: pgbench: option delaying queries till connections establishment?  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: pgbench: option delaying queries till connections establishment?
List pgsql-hackers
On Sun, Nov 15, 2020 at 4:53 AM Fabien COELHO <coelho@cri.ensmp.fr> wrote:
> In the attached version, I just comment out the call and add an
> explanation about why it is commented out. If pg overall version
> requirements are changed on windows, then it could be reinstated.

It looks like macOS doesn't have pthread barriers (via cfbot 2021, now
with more operating systems):

pgbench.c:326:8: error: unknown type name 'pthread_barrier_t'
static pthread_barrier_t barrier;
^
pgbench.c:6128:2: error: implicit declaration of function
'pthread_barrier_init' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
pthread_barrier_init(&barrier, NULL, nthreads);
^



pgsql-hackers by date:

Previous
From: Zhihong Yu
Date:
Subject: Re: Deleting older versions in unique indexes to avoid page splits
Next
From: Bruce Momjian
Date:
Subject: Re: crash recovery vs partially written WAL