pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Marina Polyakova <m.polyakova@postgrespro.ru>
Cc: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: pgsql-hackers@postgresql.org, Ildus Kurbangaliev <i.kurbangaliev@postgrespro.ru>
Cc: Teodor Sigaev <teodor@sigaev.ru>
Subject: Re: [HACKERS] WIP Patch: Pgbench Serialization and deadlock errors
Date: Wed, 11 Jul 2018 13:49:06 -0400
Message-ID: <20180711174906.oscbjjivg6gc2riu@alvherre.pgsql> (raw)
In-Reply-To: <976a25a46420c93866ada4051976b1be@postgrespro.ru>

On 2018-Jul-11, Marina Polyakova wrote:

> can we try something like this?
> 
> PGBENCH_ERROR_START(DEBUG_FAIL)
> {
> 	PGBENCH_ERROR("client %d repeats the failed transaction (try %d",
> 				  st->id, st->retries + 1);
> 	if (max_tries)
> 		PGBENCH_ERROR("/%d", max_tries);
> 	if (latency_limit)
> 	{
> 		PGBENCH_ERROR(", %.3f%% of the maximum time of tries was used",
> 					  getLatencyUsed(st, &now));
> 	}
> 	PGBENCH_ERROR(")\n");
> }
> PGBENCH_ERROR_END();

I didn't quite understand what these PGBENCH_ERROR() functions/macros
are supposed to do.  Care to explain?

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (137+ messages)  latest in thread

Message-ID: <20180711174906.oscbjjivg6gc2riu@alvherre.pgsql>
Permalink:  ../20180711174906.oscbjjivg6gc2riu@alvherre.pgsql/
Also on:    postgresql.org/message-id/20180711174906.oscbjjivg6gc2riu@alvherre.pgsql

 · 

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: alvherre@2ndquadrant.com, m.polyakova@postgrespro.ru, coelho@cri.ensmp.fr, i.kurbangaliev@postgrespro.ru, teodor@sigaev.ru
  Subject: Re: [HACKERS] WIP Patch: Pgbench Serialization and deadlock errors
  In-Reply-To: <20180711174906.oscbjjivg6gc2riu@alvherre.pgsql>

* 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