pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: Marina Polyakova <m.polyakova@postgrespro.ru>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: kuroda.hayato@fujitsu.com, David Rowley <dgrowleyml@gmail.com>
Subject: Re: pgbench: option delaying queries till connections establishment?
Date: Fri, 12 Mar 2021 22:08:55 -0500
Message-ID: <2569481.1615604935@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+hUKG+1TUnVijM_muTpygwPDd5NPjiEM-10fT5VQD8N_yBotg@mail.gmail.com>
References: <20200227180100.zyvjwzcpiokfsqm2@alap3.anarazel.de>
	<alpine.DEB.2.22.394.2011021726390.989361@pseudo>
	<OSBPR01MB3157A7306BFF163490ED837BF5ED0@OSBPR01MB3157.jpnprd01.prod.outlook.com>
	<alpine.DEB.2.22.394.2011062034410.1605435@pseudo>
	<OSBPR01MB3157F335F242DBCDBC09DF82F5E80@OSBPR01MB3157.jpnprd01.prod.outlook.com>
	<alpine.DEB.2.22.394.2011111316540.3832060@pseudo>
	<OSBPR01MB3157D2C741ED22422E0FF9E6F5E60@OSBPR01MB3157.jpnprd01.prod.outlook.com>
	<0a8fa6ea18ef6e1a336fbcc721931928@postgrespro.ru>
	<alpine.DEB.2.22.394.2011141609050.1129903@pseudo>
	<CA+hUKG+it0+GZEZdP55fKQBuKZmu4OfXfW=qZFh7JgwVccMxCw@mail.gmail.com>
	<alpine.DEB.2.22.394.2101012114050.3573723@pseudo>
	<CA+hUKG+q_TWQgrvtfHxJoWyr1DVz_WhQBr3LjfiJMKE=V+qDFw@mail.gmail.com>
	<alpine.DEB.2.22.394.2101022148070.3573723@pseudo>
	<CA+hUKG+X+vBSJAsSLYNRVbNLXVoTC7UjaiD09ij3wY1-qakMTw@mail.gmail.com>
	<CA+hUKGJgFZmchtseDs7B9ptxWU_aHZr2KU4dprga_Rbg-TSmnw@mail.gmail.com>
	<alpine.DEB.2.22.394.2101300949420.11664@pseudo>
	<C! A+hUKGK_Ggd-Via6Y3swER_wqQwWiWGhUtN5U=a5hC3be1NN0g@mail.gmail.com>
	<CA+hUKG+nbQC9A38Z5OrYdoD1rsJbrxJN5Z8ptiRkqWeawPn3Ag@mail.gmail.com>
	<CA+hUKGLjPixrEjvsHggGL_huQ9Jg0bsjp7zpztEG=_DSRGrs+Q@mail.gmail.com>
	<CA+hUKGKrbv8RcfVenoXA31ZmCa-f9qDaKfVg5pFUCmHeecdWsQ@mail.gmail.com>
	<2568537.1615603606@sss.pgh.pa.us>
	<CA+hUKG+1TUnVijM_muTpygwPDd5NPjiEM-10fT5VQD8N_yBotg@mail.gmail.com>

Thomas Munro <thomas.munro@gmail.com> writes:
> On Sat, Mar 13, 2021 at 3:47 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Was any thought given to being able to opt out of this patchset
>> to support that configure option?

> Oops.  The pgbench code was tested under --disable-thread-safety, but
> it didn't occur to me that the AC_REPLACE_FUNCS search for
> pthread_barrier_wait should also be conditional on that; I will now go
> and try to figure out how to do that.

OK, cool.  I don't think it's hard, just do

if test "$enable_thread_safety" = yes; then
  AC_REPLACE_FUNCS(pthread_barrier_wait)
fi

Probably this check should be likewise conditional:

AC_SEARCH_LIBS(pthread_barrier_wait, pthread)

			regards, tom lane





view thread (54+ messages)  latest in thread

Message-ID: <2569481.1615604935@sss.pgh.pa.us>
Permalink:  ../2569481.1615604935@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2569481.1615604935@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, thomas.munro@gmail.com, coelho@cri.ensmp.fr, m.polyakova@postgrespro.ru, dgrowleyml@gmail.com
  Subject: Re: pgbench: option delaying queries till connections establishment?
  In-Reply-To: <2569481.1615604935@sss.pgh.pa.us>
  References: <20200227180100.zyvjwzcpiokfsqm2@alap3.anarazel.de> <0a8fa6ea18ef6e1a336fbcc721931928@postgrespro.ru> <alpine.DEB.2.22.394.2011141609050.1129903@pseudo> <CA+hUKG+it0+GZEZdP55fKQBuKZmu4OfXfW=qZFh7JgwVccMxCw@mail.gmail.com> <alpine.DEB.2.22.394.2101012114050.3573723@pseudo> <CA+hUKG+q_TWQgrvtfHxJoWyr1DVz_WhQBr3LjfiJMKE=V+qDFw@mail.gmail.com> <alpine.DEB.2.22.394.2101022148070.3573723@pseudo> <CA+hUKG+X+vBSJAsSLYNRVbNLXVoTC7UjaiD09ij3wY1-qakMTw@mail.gmail.com> <CA+hUKGJgFZmchtseDs7B9ptxWU_aHZr2KU4dprga_Rbg-TSmnw@mail.gmail.com> <alpine.DEB.2.22.394.2101300949420.11664@pseudo> <CA+hUKG+nbQC9A38Z5OrYdoD1rsJbrxJN5Z8ptiRkqWeawPn3Ag@mail.gmail.com> <CA+hUKGLjPixrEjvsHggGL_huQ9Jg0bsjp7zpztEG=_DSRGrs+Q@mail.gmail.com> <CA+hUKGKrbv8RcfVenoXA31ZmCa-f9qDaKfVg5pFUCmHeecdWsQ@mail.gmail.com> <2568537.1615603606@sss.pgh.pa.us> <CA+hUKG+1TUnVijM_muTpygwPDd5NPjiEM-10fT5VQD8N_yBotg@mail.gmail.com> <2569481.1615604935@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox