Sergi Vera wrote:
> Everything is working ok and fast, but at some moment (sometimes sooner,
> sometimes later) the server starts to fail with the following messages
>
> org.postgresql.util.PSQLException: invalid message format (for the first
> failure)
> org.postgresql.util.PSQLException: A I/O error has happened while
> sending to backend (at every following jdbc call)
I suggest having a look in the server logs to see if there is any error
being reported by the backend.
You might also find it helpful to enable log_statement and
log_connection in postgresql.conf while you're trying to track the issue
down. Your logs might get quite big if your load is high, though.
--
Craig Ringer