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 1kkbzV-0003It-M0 for pgsql-general@arkaria.postgresql.org; Wed, 02 Dec 2020 23:56:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kkbzU-00017d-KA for pgsql-general@arkaria.postgresql.org; Wed, 02 Dec 2020 23:56:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkbzU-00017R-9V for pgsql-general@lists.postgresql.org; Wed, 02 Dec 2020 23:56:56 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kkbzR-0006mW-PD for pgsql-general@lists.postgresql.org; Wed, 02 Dec 2020 23:56:55 +0000 Received: by mail-wr1-x42d.google.com with SMTP id 64so27500wra.11 for ; Wed, 02 Dec 2020 15:56:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QllIz28EM96/acCppvaujqFI8I2SbJJcrpnPj70RwSE=; b=SMHyDUN65o1wAIXqEcdr9Krnear8yvAIqMSRAKXLZfpbDwwtY9o3o5M+XEs8uXSnSG PCQDzXx0Ya37W7M3+zfaIO1BjLnPvNbUyvydJNLVgdCeIN9nJz/HFI4qmbs9WN8N1Z0G RWLA+QNNDSsrTvErsXdIqVwZqN17j6DxHhwVxsxa9s5JVzfqBeBOZyZRINF9hJHOV0P+ j276NFJNBWKEB5S6ptsaGI70527LCu280H3dSEJ9DvZhaG5ezevFlQTYE2YEn1MadcSE V7tdUx1i9wKop0o0vXCB+uuXoms4BzpZEppWdFqFmRJrN8+xET/5+ukR+U/jQBnMcK+x oXpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=QllIz28EM96/acCppvaujqFI8I2SbJJcrpnPj70RwSE=; b=ZQWV5nxSUk9BxKC7VkebO+3yl2H1KEPl3org6Gf146/jaZzq5FWHt5PclXeWuV5E5Q eO7xZKnEffi9RCmvbgsBTeY2RrOHSWRsuZ1VXOGxlHaUigPHpWF1gPMDe44A1gN9Ote3 WWmBTR41PcudXgMKBijjKeaYjJpE6ZoIgtjZS5PRH/eJ24aB2lvrgfJ8HRQ2PI5KDcW3 oHJu2DEsEmpVAyQi5KsFj1cH0fGbNBcYCYhO24q+8pvEpW0tcdMzllb0Xbn1d0eh7Om5 9aDbBYFImzQNdOs16C4l/PDQMdvzz/WwoRn5alckLzZARzh3JE09gXo/u6m/wZiJ+bZe HmQg== X-Gm-Message-State: AOAM532j8lgvLiQxgKdTm51yf9GTNPqBol4Mo/51LqtFJiZzmxw/2QAX 2/MjW2D/y9EPDiO7UkbdUz6DZUGRi9lQ X-Google-Smtp-Source: ABdhPJyWw1xd72UinIs8AWsKzuighFJ34+z8CnAOyfcLN3NIAkhKxX52xxXxmRJaHafX73wIq9vaxw== X-Received: by 2002:a5d:4087:: with SMTP id o7mr538824wrp.27.1606953411921; Wed, 02 Dec 2020 15:56:51 -0800 (PST) Received: from Martins-MacBook-Pro.local (host5-81-76-99.range5-81.btcentralplus.com. [5.81.76.99]) by smtp.googlemail.com with ESMTPSA id o5sm132623wmh.8.2020.12.02.15.56.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2020 15:56:51 -0800 (PST) Subject: Re: "Server versions prior to 8.0 do not support savepoints" when using JDBC ... To: Dave Cramer Cc: "David G. Johnston" , pgsql-general References: <08e909a1-1bb0-61df-3086-dd6921c7285e@googlemail.com> <1bb05419-19b4-22c9-2c3c-5d6e4b4986e7@googlemail.com> From: Martin Goodson Message-ID: <02bc1d3f-460f-54dc-b155-988c608509a8@googlemail.com> Date: Wed, 2 Dec 2020 23:56:49 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 02/12/2020 23:46, Dave Cramer wrote: > On Sun, 29 Nov 2020 at 14:09, Martin Goodson > wrote: > >> On 29/11/2020 18:46, David G. Johnston wrote: >>> 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. >>> >> Oh. That's very interesting. Thank you, David. I will chase up with the >> developers tomorrow to confirm with them the version of the postgres >> jdbc driver they are using. >> >> I'm no coder, it didn't occur to me to actually check with the source. >> Nice one :) >> >> Many thanks. >> >> 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. >> >> > I'm guessing this is now resolved ? > > > Dave Cramer > www.postgres.rocks > Technically no ... but probably yes. On Monday I followed up on the ticket and was informed that they had made some changes to their code and the problem was no longer occurring ... No detail was provided on what had been tweaked, unfortunately. I plan on closing the ticket after a week. -- 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.