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 1kjRbG-0000NT-Gp for pgsql-general@arkaria.postgresql.org; Sun, 29 Nov 2020 18:39:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kjRbE-00052y-00 for pgsql-general@arkaria.postgresql.org; Sun, 29 Nov 2020 18:39:04 +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 1kjRbD-00052q-Mg for pgsql-general@lists.postgresql.org; Sun, 29 Nov 2020 18:39:03 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kjRbB-0001YN-6l for pgsql-general@lists.postgresql.org; Sun, 29 Nov 2020 18:39:03 +0000 Received: by mail-wm1-x342.google.com with SMTP id g185so10160936wmf.3 for ; Sun, 29 Nov 2020 10:39:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=Z1KdLTqSOuSKv6aqCK+MlVq3aL9wq2T7snk9Mh4zkk4=; b=OHSLzg2mgyU1vCyI7BC77xCa8h+aFsQX8j5NADuP0cvbxM1+MfeXCjh9ewh4EGuAsi x9m4cs/FFCFV6d3mQpzXApqaD6Cn1rUTz+A9OqesRe/vbVgOTA27/MuTMmSASVhZHklp QjsNOpjY59AiKKEbJKY0c7GAckTX6oBlX+1CgF36ew8xNOaLlA+DWLx2fzfHx6iiwb59 zHE/oc7sar+oeR4+tgy8yrUbWI5ry5RG8URvEXsfEO0uyAO8T1kO1ZXsvD2pqEkhKZyJ G09OJEIOVFiMORpDKoPss4MXjoRvTUwiDCztQC3Yvm5EPd5Ye0ND5+1JIpcX+uDfgorL L1ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Z1KdLTqSOuSKv6aqCK+MlVq3aL9wq2T7snk9Mh4zkk4=; b=fmyKdbhyZKzkcnvxDjWV2UxRxoyyxrilmzN5RSW8CkgDwDocHSRWc4BkIkALx1kT4W VjqHzXdppB3ArCqVBh53+wumXBLhDbiZuX/5TeCOANsQWS4rDy5g4QiWeaZ0FPiMLhba 1mBIpK/gVX8pGsp0P2HiJ77+od+UC4qHLH7kV47H8pUVFDws4zv2pdsGm1epEXRlrV6P jP30/5qB65ipfA+zdix2OjO5R1GU4OEK65gqQfQbA9PNhx6pmKCjoOGATYjGtTQi5SZv V3XlI4NaZBIb6S+gE9q/79Gn61tzD4SWrJm8DmAZazqB2e5qOo4P1RCyGHAnL7a52+ve VUQA== X-Gm-Message-State: AOAM530IHJ/WaLjuLS2lnioPBnn5bUxWEs8J57FpSKqKWuXII7AwRbH1 PTQ+lkwOEayGMorw8acBnDDz6QbPi1j5 X-Google-Smtp-Source: ABdhPJzLq82IM6gEo429lB1M6umlWwHB5MvVnOGzLO3eTs1yLATXsRo6iBG2Bsg0WButBWr8biryww== X-Received: by 2002:a1c:2cc2:: with SMTP id s185mr18813376wms.111.1606675139626; Sun, 29 Nov 2020 10:38:59 -0800 (PST) Received: from Martins-MacBook-Pro.local (host5-81-77-0.range5-81.btcentralplus.com. [5.81.77.0]) by smtp.googlemail.com with ESMTPSA id h2sm24310234wrv.76.2020.11.29.10.38.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Nov 2020 10:38:58 -0800 (PST) Subject: Re: "Server versions prior to 8.0 do not support savepoints" when using JDBC ... To: Adrian Klaver , pgsql-general References: <08e909a1-1bb0-61df-3086-dd6921c7285e@googlemail.com> <38743862-cab6-5f30-e143-e4175316ff28@googlemail.com> <1f597918-d584-5770-de4f-43ebadb3d816@aklaver.com> From: Martin Goodson Message-ID: <51012b5d-c2a7-8ca3-85ab-a19436c0fc36@googlemail.com> Date: Sun, 29 Nov 2020 18:38:57 +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: <1f597918-d584-5770-de4f-43ebadb3d816@aklaver.com> 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 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.