Can you please share the code that reproduces the issue? I mean DDL to
create the table, and the data for the batch insert.
Alternatively, can you try rebuilding pgjdbc with MAX_BUFFERED_RECV_BYTES=250
and check if that helps? (see
https://github.com/pgjdbc/pgjdbc/blob/94549ffe6c2e643efb1f779a23673b2518e465c1/pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java#L291
)
Vladimir