]> granicus.if.org Git - pgbouncer/commitdiff
Fix JDBC vs transaction pooling FAQ
authorMarko Kreen <markokr@gmail.com>
Wed, 10 Nov 2010 14:51:36 +0000 (16:51 +0200)
committerMarko Kreen <markokr@gmail.com>
Wed, 10 Nov 2010 14:51:36 +0000 (16:51 +0200)
doc/faq.txt

index 6a0f236ce47544a73458859dc841549c00d33c90..fbd4d805da04a150fcb681f722b7142958d3b76c 100644 (file)
@@ -66,8 +66,16 @@ to keep track of them internally, which it does not do.  So only way to
 keep using PgBouncer in this mode is to disable prepared statements
 completely.
 
-For JDBC this seems to be achieved by adding `protocolVersion=2`
-parameter to connect string.
+The proper way to do it for JDBC is adding `prepareThreshold=0`
+parameter to connect string.  But current JDBC code ignores
+the setting for BEGIN/COMMIT/ROLLBACK statements and still
+tries to cache their plans.  This can be fixed with following patch:
+
+http://treehou.se/~omar/postgresql-jdbc-8.4-701-pgbouncer_txn.patch[]
+
+described here:
+
+http://pgfoundry.org/pipermail/pgbouncer-general/2010-February/000507.html[]
 
 
 == How to upgrade PgBouncer without dropping connections? ==