pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: kuroda.hayato@fujitsu.com <kuroda.hayato@fujitsu.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: RE: pgbench: option delaying queries till connections establishment?
Date: Sat, 7 Nov 2020 18:33:27 +0100 (CET)
Message-ID: <alpine.DEB.2.22.394.2011062034410.1605435@pseudo> (raw)
In-Reply-To: <OSBPR01MB3157A7306BFF163490ED837BF5ED0@OSBPR01MB3157.jpnprd01.prod.outlook.com>
References: <20200227180100.zyvjwzcpiokfsqm2@alap3.anarazel.de>
	<20200227185129.hikscyenomnlrord@alap3.anarazel.de>
	<alpine.DEB.2.21.2003012113350.25187@pseudo>
	<20200304174003.ovg5wml4mrgheyio@alap3.anarazel.de>
	<alpine.DEB.2.21.2003070905250.21542@pseudo>
	<alpine.DEB.2.22.394.2005171141510.977310@pseudo>
	<6AA0DF24-8F6B-4329-AA3B-85B167599747@yesql.se>
	<alpine.DEB.2.22.394.2007040832490.2875037@pseudo>
	<OSBPR01MB3157E66E31329E4741402E96F5190@OSBPR01MB3157.jpnprd01.prod.outlook.com>
	<alpine.DEB.2.22.394.2011021726390.989361@pseudo>
	<OSBPR01MB3157A7306BFF163490ED837BF5ED0@OSBPR01MB3157.jpnprd01.prod.outlook.com>


Hello,

>> Indeed. I took your next patch with an added explanation. I'm unclear
>> whether proceeding makes much sense though, that is some thread would run
>> the test and other would have aborted. Hmmm.
>
> Your comment looks good, thanks. In the previous version pgbench starts 
> benchmarking even if some connections fail. And users can notice the 
> connection failure by stderr output. Hence the current specification may 
> be enough.

Usually I run many pgbench through scripts, so I'm probably not there to 
check a lone stderr failure at the beginning if performance figures are
actually reported.

> If you agree, please remove the following lines:
>
> ```
> +				 * It is unclear whether it is worth doing anything rather than
> +				 * coldly exiting with an error message.
> ```

I can remove the line, but I strongly believe that reporting performance 
figures if some client connection failed thus the bench could not run as 
prescribed is a bad behavior. The good news is that it is probably quite 
unlikely. So I'd prefer to keep it and possibly submit a patch to change 
the behavior.

>> ISTM that there is another patch in the queue which needs barriers to
>> delay some initialization so as to fix a corner case bug, in which case
>> the behavior would be mandatory. The current submission could add an
>> option to skip the barrier synchronization, but I'm not enthousiastic to
>> add an option and remove it shortly later.
>
> Could you tell me which patch you mention? Basically I agree what you say,
> but I want to check it.

Should be this one: https://commitfest.postgresql.org/30/2624/,

-- 
Fabien.





view thread (54+ messages)  latest in thread

Message-ID: <alpine.DEB.2.22.394.2011062034410.1605435@pseudo>
Permalink:  ../alpine.DEB.2.22.394.2011062034410.1605435@pseudo/
Also on:    postgresql.org/message-id/alpine.DEB.2.22.394.2011062034410.1605435@pseudo

 · 

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: coelho@cri.ensmp.fr, kuroda.hayato@fujitsu.com, andres@anarazel.de, daniel@yesql.se
  Subject: Re: pgbench: option delaying queries till connections establishment?
  In-Reply-To: <alpine.DEB.2.22.394.2011062034410.1605435@pseudo>
  References: <20200227180100.zyvjwzcpiokfsqm2@alap3.anarazel.de> <20200227185129.hikscyenomnlrord@alap3.anarazel.de> <alpine.DEB.2.21.2003012113350.25187@pseudo> <20200304174003.ovg5wml4mrgheyio@alap3.anarazel.de> <alpine.DEB.2.21.2003070905250.21542@pseudo> <alpine.DEB.2.22.394.2005171141510.977310@pseudo> <6AA0DF24-8F6B-4329-AA3B-85B167599747@yesql.se> <alpine.DEB.2.22.394.2007040832490.2875037@pseudo> <OSBPR01MB3157E66E31329E4741402E96F5190@OSBPR01MB3157.jpnprd01.prod.outlook.com> <alpine.DEB.2.22.394.2011021726390.989361@pseudo> <OSBPR01MB3157A7306BFF163490ED837BF5ED0@OSBPR01MB3157.jpnprd01.prod.outlook.com> <alpine.DEB.2.22.394.2011062034410.1605435@pseudo>

* 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