Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjRiM-0000WP-21 for pgsql-general@arkaria.postgresql.org; Sun, 29 Nov 2020 18:46:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kjRiK-0002Dk-S1 for pgsql-general@arkaria.postgresql.org; Sun, 29 Nov 2020 18:46:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjRiK-0002Dd-I8 for pgsql-general@lists.postgresql.org; Sun, 29 Nov 2020 18:46:24 +0000 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kjRiI-0001cP-54 for pgsql-general@lists.postgresql.org; Sun, 29 Nov 2020 18:46:24 +0000 Received: by mail-pf1-x432.google.com with SMTP id b63so8899919pfg.12 for ; Sun, 29 Nov 2020 10:46:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+wfDmFj2q1n11zsudgUKblSMWc569SGJYY9DC9+bJFE=; b=P26mynuNgRTlOLjVGEv96kTLkywxU5Ju0dm5EPq2tcwlyRHPBtnjHXV8fuN6OYWjQ9 86OYsrolCFn4LWf/epfl3d4bVg8y97ly1KCWkk2W92oAd6f/l37fLhrPoHyRtjeBpgvC ACOmqtlowsdoSbiW2i4h0g5dVAiX0O9n86yb1A9D8rNuNQGRPf9FbI37YAbWsi3goYEI b8Ntafdn/ZQON5QAFR7NNj1bDJTo6mSNfCtvxNWcmThoRKKCOh5GmdUAX0BsexinOr/i SpMW8Z1cNYYP3XotW8w5FkKsikHTiXVwj5F1B+7LNK9u8cN5J8oAkf8vl0eesmdo9iM5 DwgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+wfDmFj2q1n11zsudgUKblSMWc569SGJYY9DC9+bJFE=; b=adoOY5IHhzS9O/O4SrcWxXgjR6AA1ucCM9tnD+zSjO+OcVcHt7/OGhLsoIuFBraeff o36WeotzkF7kXlVd+Ouiqe+Lyw142H27KHs9luKvLMY8pXvPPItdWZbzE0GyNDGMp6xz bVwJIryFSUFpYoFguOAJa8BL6PvbAX+LDW3pSySIIwJCtNCpa1eUNLilZOz5acRf+cvG Avvfl1dEx7acrEC7g7J2zev1M1DEz2fGHcX/DdYC0igcxal1kBOP3X0a94JC3Vdmstks 4PzQh+5TPQ9Nv6y+2DWyq93V8JeW8bFJZlTeQH/Hap3QxOBG1emccEfYCCKvs6kqV1V0 ZiMA== X-Gm-Message-State: AOAM5325XSqtPgumH/9fAbUp0p2cby3aEeJGaly79qbkeItxoSFfsu5M /VeObs26aBYeKSXzQ+dm++R00VQnop1v+qrDTvE= X-Google-Smtp-Source: ABdhPJz7vxbVaetOcXGvT3vg9zM/kiwlCTv5rKxET94j5mofjIfgrxlsSYTKJ0ViMmVDPsU+YvPWXf2jElR/D0TGuBw= X-Received: by 2002:a17:90a:7d08:: with SMTP id g8mr19629471pjl.180.1606675579119; Sun, 29 Nov 2020 10:46:19 -0800 (PST) MIME-Version: 1.0 References: <08e909a1-1bb0-61df-3086-dd6921c7285e@googlemail.com> In-Reply-To: <08e909a1-1bb0-61df-3086-dd6921c7285e@googlemail.com> From: "David G. Johnston" Date: Sun, 29 Nov 2020 11:46:01 -0700 Message-ID: Subject: Re: "Server versions prior to 8.0 do not support savepoints" when using JDBC ... To: Martin Goodson Cc: pgsql-general Content-Type: multipart/alternative; boundary="00000000000029ab1805b5434fd9" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --00000000000029ab1805b5434fd9 Content-Type: text/plain; charset="UTF-8" On Sun, Nov 29, 2020 at 11: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. > 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. --00000000000029ab1805b5434fd9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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(AbstractJdbc3Conn= ection.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.
<= div>
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 vers= ion 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 ev= en exist at that point since the build was re-done using pre-processors.

David J.

--00000000000029ab1805b5434fd9--