pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Overflow hazard in pgbench
Date: Mon, 28 Jun 2021 12:43:30 -0400
Message-ID: <253122.1624898610@sss.pgh.pa.us> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2106272024180.482873@pseudo>
References: <73927.1624815543@sss.pgh.pa.us>
	<alpine.DEB.2.22.394.2106272024180.482873@pseudo>

Fabien COELHO <coelho@cri.ensmp.fr> writes:
>> I suggest applying the attached in branches that have the required 
>> functions.

> The proposed patch does fix the issue in pgbench TAP test. I'd suggest to 
> add unlikely() on all these conditions, as already done elsewhere. See 
> attached version.

Done that way, though I'm skeptical that it makes any measurable
difference.

> I also recompiled after removing manually -fwrapv: Make check, pgbench TAP 
> tests and check-world all passed. I'm not sure that edge case are well 
> enough tested in postgres to be sure that all is ok just from these runs 
> though.

Yeah, I'm afraid that in most places it'd take a specifically-designed
test case to expose a problem, if there is one.

			regards, tom lane





view thread (7+ messages)  latest in thread

Message-ID: <253122.1624898610@sss.pgh.pa.us>
Permalink:  ../253122.1624898610@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/253122.1624898610@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, coelho@cri.ensmp.fr, pgsql-hackers@lists.postgresql.org
  Subject: Re: Overflow hazard in pgbench
  In-Reply-To: <253122.1624898610@sss.pgh.pa.us>

* 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