How to prevent jdbc from sending any results back to the client ? - Mailing list pgsql-jdbc

From Dimitris Karampinas
Subject How to prevent jdbc from sending any results back to the client ?
Date
Msg-id CAC_Q3Nx66+5yPF4=8=C2PW7jVNGQ2FegvOQpzAjKsM9uGqh5RA@mail.gmail.com
Whole thread Raw
Responses Re: How to prevent jdbc from sending any results back to the client ?  (Sehrope Sarkuni <sehrope@jackdb.com>)
List pgsql-jdbc
Hi,

I'm working on an academic project and I need to benchmark PostgreSQL.
I'm intersted only about the performance of the DBMS itself and I'm trying to keep things simple in my measurements.
Preferably I'd like to ignore the query results at the client side but jdbc seems to return results even if I don't call next() on the Resultset (is that true ?). 
As a consequence, I can't measure acurately a per query execution time since the time I get depends also on the time spent to send the answer (or part of it) to the client.
setFetchSize(1) doesn't seem to help much.
Can I hack the driver and diminish the overhead explained above ?

Cheers,
Dimitris

pgsql-jdbc by date:

Previous
From: Gavin Flower
Date:
Subject: Re: Speed up JDBC connection creation on 9.0+
Next
From: Sehrope Sarkuni
Date:
Subject: Re: How to prevent jdbc from sending any results back to the client ?