from the jdbc list:
The database connections have preparedThreshold set to 0 as documented in the pgBouncer FAQ (https://pgbouncer.github.io/faq.html#how-to-use-prepared-statements-with-transaction-pooling).
This works with postgresql-jdbc versions 9.4-1205 and 9.4.1208. It does not work in any version since 1208.
I would like to keep packages up-to-date, so any help is much appreciated. Packages are centos 6, pgdg 9.2, and wildfly .tar.gz.
Stack traces and configuration follow below.
The stack trace from 9.4.1212. The reported error is the same in 1211, and I think 1210.
2017-02-02 11:36:11,284 INFO [org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl] (Batch Thread - 3) HHH000010: On release of batch it still contained JDBC statements
The stack trace from 9.4.1209
2017-02-02T12:02:26.883: ERROR: [com.recognia.batch.writer.instrument.InstrumentActionCollectionWriter] Item writer exception: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute batch
a datasource from wildfly domain.xml
The text was updated successfully, but these errors were encountered:
@davecramer Thanks for reply.
We have upgraded Postgres server to 9.2 but still getting same error.
Also note PgBouncer configs we have ,