This doesn't behave correctly if you set -j to greater than -c, and also use the rate limit option:
[...]

I think that can be fixed by just setting nthreads internally to nclients, if nthreads > nclients. But please double-check that the logic used to calculate throttle_delay makes sense in general, when nthreads is not a multiple of nclients.

Indeed, I probably did not consider nthreads > nclients. The fix you suggest seems ok. I'll check it before sending a new v3.

--
Fabien.


--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to