I can confirm, It really behave differently, but not for the same reason as yours.
In my case, problema is that after optimization at server side, results get different.
I always work with url parameter:
jdbc:postgresql://dbdevel:5433/mydatabase?prepareThreshold=0
When using prepareThreshold=0, I do avoid the server side prepared statements.
My be worth to give a try, since would also makes difference for you as well.
Atenciosamente,
Edson Carlos Ericksson Richter
Em 11/01/2016 11:33, Dave Cramer escreveu:
It's not that JDBC is slower, it is the plans that are being generated are slower. I can't imagine why that would even happen.
JDBC doesn't really change the incoming SQL