pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David G. Johnston <david.g.johnston@gmail.com>
To: Martin Goodson <kaemaril@googlemail.com>
Cc: 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 11:46:01 -0700
Message-ID: <CAKFQuwbe_xrVreDs5HY4pMJUxt+LPuyV1ejVopy8FrNYSE87fA@mail.gmail.com> (raw)
In-Reply-To: <08e909a1-1bb0-61df-3086-dd6921c7285e@googlemail.com>
References: <08e909a1-1bb0-61df-3086-dd6921c7285e@googlemail.com>

On Sun, Nov 29, 2020 at 11:06 AM Martin Goodson <kaemaril@googlemail.com>
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.
>

My best guess is that they are not actually running 42.2.9, they are
running an older version that was released before PostgreSQL v10 came out
and the version detection code doesn't recognize the new version format
since 10.

I didn't dig into this too deeply but I did download the zip for 42.2.9 and
those classes don't even exist at that point since the build was re-done
using pre-processors.

David J.

view thread (9+ messages)  latest in thread

Message-ID: <CAKFQuwbe_xrVreDs5HY4pMJUxt+LPuyV1ejVopy8FrNYSE87fA@mail.gmail.com>
Permalink:  ../CAKFQuwbe_xrVreDs5HY4pMJUxt+LPuyV1ejVopy8FrNYSE87fA@mail.gmail.com/
Also on:    postgresql.org/message-id/CAKFQuwbe_xrVreDs5HY4pMJUxt+LPuyV1ejVopy8FrNYSE87fA@mail.gmail.com

 · 

reply

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: david.g.johnston@gmail.com, kaemaril@googlemail.com
  Subject: Re: "Server versions prior to 8.0 do not support savepoints" when using JDBC ...
  In-Reply-To: <CAKFQuwbe_xrVreDs5HY4pMJUxt+LPuyV1ejVopy8FrNYSE87fA@mail.gmail.com>
  References: <08e909a1-1bb0-61df-3086-dd6921c7285e@googlemail.com> <CAKFQuwbe_xrVreDs5HY4pMJUxt+LPuyV1ejVopy8FrNYSE87fA@mail.gmail.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