Re: pgbench exit code - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: pgbench exit code
Date
Msg-id alpine.DEB.2.21.1810121936160.12620@lancre
Whole thread Raw
In response to Re: pgbench exit code  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Responses Re: pgbench exit code  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
List pgsql-hackers
Hello Peter,

>> The abort is by a client, but the code seems to only check the first
>> client of a thread. ISTM that if the second or later client abort it may
>> not be detected? Probably an intermediate aggregation at the thread level
>> is needed, or maybe a global variable, or as errors are counted somewhere,
>> it may be enough just to check that the count is non zero?
>
> fixed

With an aggregation. Fine with me.

>> The patch removes a check that there was an output and that no
>> transactions where processed. ISTM it should be kept. If a different exit
>> status is chosen on abort, that would allow to keep it easily.
>
> fixed

Ok.

>> Probably there should be some documentation changes as well?
>
> done

Ok.

Patch applies cleanly, compiles, global & local "make check" are ok.
Doc build is okay.

I noticed "for (int i"… pgbench is welcome to C99:-)

No further remarks. I turned the patch as ready on the CF app.

Attached a file I used for some manual tests.

-- 
Fabien.
Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: AllocSetContextCreate changes breake extensions
Next
From: Tom Lane
Date:
Subject: Re: Make Windows print float exponents like everybody else?