pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Yugo NAGATA <nagata@sraoss.co.jp>
Cc: Tatsuo Ishii <ishii@sraoss.co.jp>
Cc: thomas.munro@gmail.com
Cc: m.polyakova@postgrespro.ru
Cc: alvherre@2ndquadrant.com
Cc: pgsql-hackers@postgresql.org
Cc: teodor@sigaev.ru
Subject: Re: [HACKERS] WIP aPatch: Pgbench Serialization and deadlock errors
Date: Sat, 10 Jul 2021 19:19:45 +0200 (CEST)
Message-ID: <alpine.DEB.2.22.394.2107101914220.775110@pseudo> (raw)
In-Reply-To: <20210707224642.4e8265865fda4e118c4de5ee@sraoss.co.jp>
References: <20210706164624.dd22be9e4f10ed2657d25552@sraoss.co.jp>
	<20210707.161123.574070522694073225.t-ishii@gmail.com>
	<20210707195323.02f64ddf51c77ce2ca41e465@sraoss.co.jp>
	<20210707.215016.2091144688016450280.t-ishii@gmail.com>
	<20210707224642.4e8265865fda4e118c4de5ee@sraoss.co.jp>


Hello,

> Of course, users themselves should be careful of problematic script, but it
> would be better that pgbench itself avoids problems if pgbench can beforehand.
>
>> Or, we should terminate the last cycle of benchmark regardless it is
>> retrying or not if -T expires. This will make pgbench behaves much
>> more consistent.

I would tend to agree with this behavior, that is not to start any new 
transaction or transaction attempt once -T has expired.

I'm a little hesitant about how to count and report such unfinished 
because of bench timeout transactions, though. Not counting them seems to 
be the best option.

> Hmmm, indeed this might make the behaviour a bit consistent, but I am not
> sure such behavioural change benefit users.

The user benefit would be that if they asked for a 100s benchmark, pgbench 
does a reasonable effort not to overshot that?

-- 
Fabien.





view thread (82+ messages)  latest in thread

Message-ID: <alpine.DEB.2.22.394.2107101914220.775110@pseudo>
Permalink:  ../alpine.DEB.2.22.394.2107101914220.775110@pseudo/
Also on:    postgresql.org/message-id/alpine.DEB.2.22.394.2107101914220.775110@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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: coelho@cri.ensmp.fr, nagata@sraoss.co.jp, ishii@sraoss.co.jp, thomas.munro@gmail.com, m.polyakova@postgrespro.ru, alvherre@2ndquadrant.com, teodor@sigaev.ru
  Subject: Re: [HACKERS] WIP aPatch: Pgbench Serialization and deadlock errors
  In-Reply-To: <alpine.DEB.2.22.394.2107101914220.775110@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