I see that we are kind of stuck at this point. I agree that it is possible to change pgbench without changing libpq, even though I am not sure that this is better. I would like to submit another approach, which introduces a new state into the pgbench state machine to wait for the response to a Parse message.