Here is a revised version of the pgbench duration patch.
I merged some comments from Brendan and gnari.
"Brendan Jurd" <direvus@gmail.com> wrote:
> >> Wouldn't this be better written as:
> >> if ((duration > 0 && timer_exceeded) || st->cnt >= nxacts)
> >
> > sorry, but these do not lok as the same thing to me.
> > gnari
I used this condition expression here:
if ((st->cnt >= nxacts && duration <= 0) || timer_exceeded)
Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center