In Java, using java.sql.PreparedStatement
, I'm trying to submit a rather large query, containing constant (VALUES (?), (?), (?)...)
expression for efficient join.
There are cca 250K values, so I'm also setting 250K parameters.
In Java, I'm getting
org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.
On my server PostgreSQL log, there is a single line about that error:
incomplete message from client
Any idea about some setting I could change anywhere to make my large query work?