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 1ltnWR-0001jO-Ly for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Jun 2021 08:37:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ltnWQ-0004X0-8V for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Jun 2021 08:37:10 +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 1ltnWP-0004Wr-T1 for pgsql-hackers@lists.postgresql.org; Thu, 17 Jun 2021 08:37:09 +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 1ltnWN-0000kx-1q for pgsql-hackers@lists.postgresql.org; Thu, 17 Jun 2021 08:37:08 +0000 Received: from petersbourg.cri.ensmp.fr (petersbourg.cri.ensmp.fr [10.2.14.5]) by smtp.cri.ensmp.fr (Postfix) with ESMTPSA id 04D22C0227; Thu, 17 Jun 2021 10:39:00 +0200 (CEST) Date: Thu, 17 Jun 2021 10:37:05 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@pseudo To: Yugo NAGATA cc: "kuroda.hayato@fujitsu.com" , PostgreSQL Developers Subject: Re: pgbench bug candidate: negative "initial connection time" In-Reply-To: <20210617125556.267049db17aaad74e9328965@sraoss.co.jp> Message-ID: References: <20210614170702.af28e1eeaa055a818f5880e0@sraoss.co.jp> <20210617005934.8bd37bf72efd5f1b38e6f482@sraoss.co.jp> <20210617125556.267049db17aaad74e9328965@sraoss.co.jp> 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: Archived-At: Precedence: bulk Hello Yugo-san, > By the way, the issue of inital connection erros reported in this thread > will be fixed by the patch attached in my previous post (a major part are > written by you :-) That does not, on its own, ensure that it is bug free:-) > ). Is this acceptable for you? I disagree on two counts: First, thread[0] should not appear. Second, currently the *only* function to change the client state is advanceConnectionState, so it can be checked there and any bug is only there. We had issues before when several functions where doing updates, and it was a mess to understand what was going on. I really want that it stays that way, so I disagree with setting the state to ABORTED from threadRun. Moreover I do not see that it brings a feature, so ISTM that it is not an actual issue not to do it? -- Fabien.