Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKueU-0007Kz-FN for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Mar 2021 03:09:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lKueT-00044d-Bh for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Mar 2021 03:09:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKueT-00043V-44 for pgsql-hackers@lists.postgresql.org; Sat, 13 Mar 2021 03:09:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKueR-0001fJ-8t for pgsql-hackers@postgresql.org; Sat, 13 Mar 2021 03:09:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 12D38tWX2569482; Fri, 12 Mar 2021 22:08:55 -0500 From: Tom Lane To: Thomas Munro cc: Fabien COELHO , Marina Polyakova , pgsql-hackers , kuroda.hayato@fujitsu.com, David Rowley Subject: Re: pgbench: option delaying queries till connections establishment? In-reply-to: References: <20200227180100.zyvjwzcpiokfsqm2@alap3.anarazel.de> <0a8fa6ea18ef6e1a336fbcc721931928@postgrespro.ru> <2568537.1615603606@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Sat, 13 Mar 2021 16:00:29 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2569480.1615604935.1@sss.pgh.pa.us> Date: Fri, 12 Mar 2021 22:08:55 -0500 Message-ID: <2569481.1615604935@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > On Sat, Mar 13, 2021 at 3:47 PM Tom Lane 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