pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Yugo NAGATA <nagata@sraoss.co.jp>
Cc: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: kuroda.hayato@fujitsu.com, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: pgbench bug candidate: negative "initial connection time"
Date: Sat, 9 Oct 2021 00:41:33 +0900
Message-ID: <f9041ec2-46b6-1b41-0e84-9c8a1e2d6bda@oss.nttdata.com> (raw)
In-Reply-To: <YVaqSyyj9XOc7aIa@paquier.xyz>
References: <20210617181642.e9b9d9979e6bd3b02fcb3065@sraoss.co.jp>
	<alpine.DEB.2.22.394.2106171149410.2693553@pseudo>
	<20210618.172603.409047378314636142.horikyota.ntt@gmail.com>
	<alpine.DEB.2.22.394.2106181434110.3146194@pseudo>
	<alpine.DEB.2.22.394.2106181535400.3146194@pseudo>
	<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>
	<f65cc95b-f6d4-2d1c-9a67-731c198fed23@oss.nttdata.com>
	<YVaqSyyj9XOc7aIa@paquier.xyz>



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

Attachments:

deconnection.patch (text/plain, 563B) download 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;

view thread (27+ messages)  latest in thread

Message-ID: <f9041ec2-46b6-1b41-0e84-9c8a1e2d6bda@oss.nttdata.com>
Permalink:  ../f9041ec2-46b6-1b41-0e84-9c8a1e2d6bda@oss.nttdata.com/
Also on:    postgresql.org/message-id/f9041ec2-46b6-1b41-0e84-9c8a1e2d6bda@oss.nttdata.com

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: masao.fujii@oss.nttdata.com, michael@paquier.xyz, nagata@sraoss.co.jp, coelho@cri.ensmp.fr, horikyota.ntt@gmail.com
  Subject: Re: pgbench bug candidate: negative "initial connection time"
  In-Reply-To: <f9041ec2-46b6-1b41-0e84-9c8a1e2d6bda@oss.nttdata.com>
  References: <20210617181642.e9b9d9979e6bd3b02fcb3065@sraoss.co.jp> <alpine.DEB.2.22.394.2106171149410.2693553@pseudo> <20210618.172603.409047378314636142.horikyota.ntt@gmail.com> <alpine.DEB.2.22.394.2106181434110.3146194@pseudo> <alpine.DEB.2.22.394.2106181535400.3146194@pseudo> <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> <f65cc95b-f6d4-2d1c-9a67-731c198fed23@oss.nttdata.com> <YVaqSyyj9XOc7aIa@paquier.xyz> <f9041ec2-46b6-1b41-0e84-9c8a1e2d6bda@oss.nttdata.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox