I know that the backend process caches the pages in shared buffers so I set up a warm up phase before I start benchmarking.
The thing is that whenever I use psql to execute my query it takes some seconds and then it returns with the results.
For the case of jdbc driver, it returns imediately. Shouldn't it block for some seconds too and then return ?