From: Martin Goodson <kaemaril@googlemail.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: "Server versions prior to 8.0 do not support savepoints" when using JDBC ...
Date: Sun, 29 Nov 2020 18:38:57 +0000
Message-ID: <51012b5d-c2a7-8ca3-85ab-a19436c0fc36@googlemail.com> (raw)
In-Reply-To: <1f597918-d584-5770-de4f-43ebadb3d816@aklaver.com>
References: <08e909a1-1bb0-61df-3086-dd6921c7285e@googlemail.com>
<d2e78fbe-dc86-b9ad-a135-b32eb0c7ae9f@aklaver.com>
<38743862-cab6-5f30-e143-e4175316ff28@googlemail.com>
<1f597918-d584-5770-de4f-43ebadb3d816@aklaver.com>
On 29/11/2020 18:28, Adrian Klaver wrote:
> On 11/29/20 10:22 AM, Martin Goodson wrote:
>> On 29/11/2020 18:10, Adrian Klaver wrote:
>>> On 11/29/20 10:06 AM, Martin Goodson wrote:
>>>> Hello.
>>>>
>>>> I wonder if anyone can assist with this?
>>>>
>>>> Some of my developers are reporting that they are getting the
>>>> following message when attempting to connect to the database using
>>>> jdbc:
>>>>
>>>> Caused by: org.postgresql.util.PSQLException: Server versions prior
>>>> to 8.0 do not support savepoints
>>>>
>>>> at
>>>>
>>>> org.postgresql.jdbc3.AbstractJdbc3Connection.setSavepoint(AbstractJdbc3Connection.java:95)
>>>>
>>>>
>>>> Database version is 10.5 running under RHEL 7.4. The postgreSQL jdbc
>>>> driver version they're employing is postgresl-42.2.9.
>>
>>> How was the database installed and from where?
>>
>> Hello, Adrian. The database was installed using an enterprisedb
>> installer, to its own dedicated set of directories.
>>
>>> Do you have more then one instance of Postgres running on the machine?
>>
>> We do not, no. It is the sole PostgreSQL database cluster running on
>> that box.
>>
>>> What is the connection code being used?
>>
>> An excellent question. I will chase up with them, and find out. I
>> believe they're using tomcat, but don't know the exact code involved.
>>
>> FWIW the connection is not local, the attempted connection is from a
>> different server.
>
> And you know that this is actually the server being reached?
>
> Do you see the attempted connection in the logs?
I do, yes. We log connections, and I can see connections incoming from
their application servers.
At the moment we only log connections and erroring statements, but
tomorrow I think I'll be temporarily enabling logging of all
disconnections and all statements, to see what (if anything) they're
actually executing on the database side before they see their error ...
Regards,
Martin.
-
Martin Goodson
Whatever you've got planned, forget it. I'm the Doctor.
I'm 904 years old. I'm from the planet Gallifrey in the
constellation of Kasterborous. I am The Oncoming Storm,
the Bringer of Darkness and you are ... basically just a
rabbit, aren't you? OK, carry on, just a general ...
warning.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: kaemaril@googlemail.com, adrian.klaver@aklaver.com
Subject: Re: "Server versions prior to 8.0 do not support savepoints" when using JDBC ...
In-Reply-To: <51012b5d-c2a7-8ca3-85ab-a19436c0fc36@googlemail.com>
References: <08e909a1-1bb0-61df-3086-dd6921c7285e@googlemail.com> <d2e78fbe-dc86-b9ad-a135-b32eb0c7ae9f@aklaver.com> <38743862-cab6-5f30-e143-e4175316ff28@googlemail.com> <1f597918-d584-5770-de4f-43ebadb3d816@aklaver.com> <51012b5d-c2a7-8ca3-85ab-a19436c0fc36@googlemail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox