Jdbc connection pooling and PG 7.4 consistently fails

From: "Lewis Foti" <lewis(dot)foti(at)mentation(dot)com>
To: <pgsql-bugs(at)postgresql(dot)org>
Subject: Jdbc connection pooling and PG 7.4 consistently fails
Date: 2003-12-18 19:17:12
Message-ID: MJEPJJCNLEBMDJFMDDABMEJDCDAA.lewis.foti@mentation.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-jdbc

Hi

Having downloaded and installed the rpms for 7.4 I upgraded the database and
began testing. As the system under development is based on servlets we are
using the JDBC3 Jdbc3PoolingDataSource to provide the connections. All
attempts to read from the database via jdbc pooled connections now fail.
Looking in syslog the following error is being reported;

Dec 18 19:06:04 neptune postgres[1986]: [4-1] LOG: statement: set
autocommit = off;
Dec 18 19:06:04 neptune postgres[1986]: [5-1] ERROR: SET AUTOCOMMIT TO OFF
is no longer supported

This then causes a Java exception and the query fails. The jdbc jar file
being used is /usr/share/pgsql/pg73jdbc3.jar as provided in the
postgresql-jdbc-7.4-0.5PGDG rpm. Is this the correct one to use or should we
replace it with the /usr/share/pgsql/devpgjdbc3.jar?

regards

Lewis
Lewis Foti

e: lewis(dot)foti(at)mentation(dot)com
m: +44 (0)7771 535943
w: www.mentation.com

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-12-18 22:51:12 Re: libpq3 + ssl memory leak
Previous Message Tom Lane 2003-12-18 17:44:17 Re: [BUGS] pg_service.conf ignores dbname parameter

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2003-12-19 18:27:17 Re: Jdbc connection pooling and PG 7.4 consistently fails
Previous Message Alexandre Moutinho Santos 2003-12-18 18:31:15 Compile jdbc in SuSE 9 and ANT