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 1mYs0D-00062c-Uq for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Oct 2021 15:41:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mYs0C-00016f-U7 for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Oct 2021 15:41:40 +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 1mYs0C-00016X-MG for pgsql-hackers@lists.postgresql.org; Fri, 08 Oct 2021 15:41:40 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYs09-0008DY-UT for pgsql-hackers@lists.postgresql.org; Fri, 08 Oct 2021 15:41:40 +0000 Received: from hrk.local (p2388012-ipbf1027funabasi.chiba.ocn.ne.jp [118.6.6.12]) by oss.nttdata.com (Postfix) with ESMTPSA id 2F7BE60794; Sat, 9 Oct 2021 00:41:34 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.3 at oss.nttdata.com Subject: Re: pgbench bug candidate: negative "initial connection time" To: Michael Paquier Cc: Yugo NAGATA , Fabien COELHO , Kyotaro Horiguchi , kuroda.hayato@fujitsu.com, PostgreSQL Developers References: <20210617181642.e9b9d9979e6bd3b02fcb3065@sraoss.co.jp> <20210618.172603.409047378314636142.horikyota.ntt@gmail.com> <20210729132325.1f4bb9233f9fa759ca2d9213@sraoss.co.jp> <602fccbd-a8cf-fc0a-da63-faaeb2cfbabe@oss.nttdata.com> <20210924072645.cc30d215c024a0f6b1d1cff3@sraoss.co.jp> <71ba41e8-017a-8bd9-e16e-7edb337e422d@oss.nttdata.com> From: Fujii Masao Message-ID: Date: Sat, 9 Oct 2021 00:41:33 +0900 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------07B9F29E1226AE0E0A34A072" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------07B9F29E1226AE0E0A34A072 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 2021/10/01 15:27, Michael Paquier wrote: > On Wed, Sep 29, 2021 at 10:11:53PM +0900, Fujii Masao wrote: >> BTW, when logfile fails to be opened, pgbench gets stuck due to commit >> aeb57af8e6. So even if we decided not to back-patch those changes, >> we should improve the handling of logfile open failure, to fix the issue. > > There is an entry in the CF for this thread: > https://commitfest.postgresql.org/34/3219/ > > I have moved that to the next one as some pieces are missing. If you > are planning to handle the rest, could you register your name as a > committer? Thanks for letting me know that! I registered myself as a committer of the patch again. pg_time_usec_t conn_duration; /* cumulated connection and deconnection * delays */ BTW, while reading the patch, I found the above comment in pgbench.c. "deconnection" seems a valid word in French (?), but isn't it better to replace it with "disconnection"? Patch attached. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION --------------07B9F29E1226AE0E0A34A072 Content-Type: text/plain; charset=UTF-8; x-mac-type="0"; x-mac-creator="0"; name="deconnection.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="deconnection.patch" diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c index d6b31bbf53..81693e1765 100644 --- a/src/bin/pgbench/pgbench.c +++ b/src/bin/pgbench/pgbench.c @@ -509,7 +509,7 @@ typedef struct pg_time_usec_t create_time; /* thread creation time */ pg_time_usec_t started_time; /* thread is running */ pg_time_usec_t bench_start; /* thread is benchmarking */ - pg_time_usec_t conn_duration; /* cumulated connection and deconnection + pg_time_usec_t conn_duration; /* cumulated connection and disconnection * delays */ StatsData stats; --------------07B9F29E1226AE0E0A34A072--