pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: Yugo NAGATA <nagata@sraoss.co.jp>
To: 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: Tue, 7 Sep 2021 02:34:17 +0900
Message-ID: <602fccbd-a8cf-fc0a-da63-faaeb2cfbabe@oss.nttdata.com> (raw)
In-Reply-To: <20210729132325.1f4bb9233f9fa759ca2d9213@sraoss.co.jp>
References: <alpine.DEB.2.22.394.2106171028050.2693553@pseudo>
	<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>



On 2021/07/29 13:23, Yugo NAGATA wrote:
> Hello,
> 
> On Fri, 18 Jun 2021 15:58:48 +0200 (CEST)
> Fabien COELHO <coelho@cri.ensmp.fr> wrote:
> 
>> Attached Yugo-san patch with some updates discussed in the previous mails,
>> so as to move things along.
> 
> I attached the patch rebased to a change due to 856de3b39cf.

+		pg_log_fatal("connection for initialization failed");
+		pg_log_fatal("setup connection failed");
+				pg_log_fatal("cannot create connection for client %d",

These fatal messages output when doConnect() fails should be a bit more consistent each other? For example,

     could not create connection for initialization
     could not create connection for setup
     could not create connection for client %d

I'm not sure, but *if* "xxx failed" is more proper for pgbench, what about

     connection for initialization failed
     connection for setup failed
     connection for client %d failed


> Exit status 1 indicates static problems such as invalid command-line options.
> Errors during the run such as database errors or problems in the script will
> result in exit status 2.

While reading the code and docs related to the patch, I found
these descriptions in pgbench docs. The first description needs to be
updated? Because even database error (e.g., failure of connection for setup)
can result in exit status 1 if it happens before the benchmark actually runs.

Regards,


-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION





view thread (27+ messages)  latest in thread

Message-ID: <602fccbd-a8cf-fc0a-da63-faaeb2cfbabe@oss.nttdata.com>
Permalink:  ../602fccbd-a8cf-fc0a-da63-faaeb2cfbabe@oss.nttdata.com/
Also on:    postgresql.org/message-id/602fccbd-a8cf-fc0a-da63-faaeb2cfbabe@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, nagata@sraoss.co.jp, coelho@cri.ensmp.fr, horikyota.ntt@gmail.com
  Subject: Re: pgbench bug candidate: negative "initial connection time"
  In-Reply-To: <602fccbd-a8cf-fc0a-da63-faaeb2cfbabe@oss.nttdata.com>
  References: <alpine.DEB.2.22.394.2106171028050.2693553@pseudo> <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>

* 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