Diagnostic step 1
Reproduce with a minimal Java test harness that issues the same PreparedStatement pattern against the DB from the same host and collect tcpdump around the connection to compare protocol sequences between psql (simple query) and the app (extended protocol)