Carlos Barroso <miguel(dot)barroso(at)mail(dot)pt> writes:
> I tried with pure JDBC and still have the same problem.
Hm. I don't know enough about JDBC to think what the issue might be.
I'd suggest asking about it on the pgsql-jdbc list.
regards, tom lane