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 1keu0v-00024M-27 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Nov 2020 05:58:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1keu0t-0006ql-Md for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Nov 2020 05:58:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1keu0t-0006qV-FL for pgsql-hackers@lists.postgresql.org; Tue, 17 Nov 2020 05:58:47 +0000 Received: from sfr-1.cri.mines-paristech.fr ([77.158.180.225] helo=smtp.cri.ensmp.fr) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1keu0p-000237-Uq for pgsql-hackers@postgresql.org; Tue, 17 Nov 2020 05:58:46 +0000 Received: from pseudo (19.237.219.88.rev.sfr.net [88.219.237.19]) by smtp.cri.ensmp.fr (Postfix) with ESMTPSA id 7217EC0391; Tue, 17 Nov 2020 06:59:27 +0100 (CET) Date: Tue, 17 Nov 2020 06:58:35 +0100 (CET) From: Fabien COELHO X-X-Sender: fabien@pseudo To: Andres Freund cc: Alexander Korotkov , pgsql-hackers Subject: Re: pgbench: option delaying queries till connections establishment? In-Reply-To: <20201116213203.hkw5pklzg3hg5jwj@alap3.anarazel.de> Message-ID: References: <20200227180100.zyvjwzcpiokfsqm2@alap3.anarazel.de> <20201116213203.hkw5pklzg3hg5jwj@alap3.anarazel.de> 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 > I think the issue really is that, independent of PG lock contention, > it'll take a while to establish all connections, and that starting to > benchmark with only some connections established will create pretty > pointless numbers. Yes. This is why I think that if we have some way to synchronize it should always be used, i.e. not an option. -- Fabien.