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 1kvnpq-0001gT-KF for pgsql-hackers@arkaria.postgresql.org; Sat, 02 Jan 2021 20:49:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kvnpn-0000Jx-S6 for pgsql-hackers@arkaria.postgresql.org; Sat, 02 Jan 2021 20:49:11 +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 1kvnpn-0000Jq-LW for pgsql-hackers@lists.postgresql.org; Sat, 02 Jan 2021 20:49:11 +0000 Received: from sfr-1.cri.mines-paristech.fr ([77.158.180.225] helo=smtp.cri.ensmp.fr) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kvnph-0005n4-51 for pgsql-hackers@postgresql.org; Sat, 02 Jan 2021 20:49:11 +0000 Received: from pseudo (19.237.219.88.rev.sfr.net [88.219.237.19]) by smtp.cri.ensmp.fr (Postfix) with ESMTPSA id 60683C110E; Sat, 2 Jan 2021 21:50:04 +0100 (CET) Date: Sat, 2 Jan 2021 21:49:01 +0100 (CET) From: Fabien COELHO X-X-Sender: fabien@pseudo To: Thomas Munro cc: Marina Polyakova , pgsql-hackers , kuroda.hayato@fujitsu.com Subject: Re: pgbench: option delaying queries till connections establishment? In-Reply-To: Message-ID: References: <20200227180100.zyvjwzcpiokfsqm2@alap3.anarazel.de> <6AA0DF24-8F6B-4329-AA3B-85B167599747@yesql.se> <0a8fa6ea18ef6e1a336fbcc721931928@postgrespro.ru> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>> 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.