An additional thought:

Yet another thought, hopefully final on this subject.

I think that the probability of a context switch is higher when calling PQfinish than in other parts of pgbench because it contains system calls (e.g. closing the network connection) where the kernel is likely to stop this process and activate another one.


Sent via pgsql-hackers mailing list (
To make changes to your subscription:

Reply via email to