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 1kjRKs-0008PC-Tk for pgsql-general@arkaria.postgresql.org; Sun, 29 Nov 2020 18:22:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kjRKr-00066E-QY for pgsql-general@arkaria.postgresql.org; Sun, 29 Nov 2020 18:22:09 +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 1kjRKr-000667-H0 for pgsql-general@lists.postgresql.org; Sun, 29 Nov 2020 18:22:09 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kjRKp-00022w-Ac for pgsql-general@lists.postgresql.org; Sun, 29 Nov 2020 18:22:08 +0000 Received: by mail-wm1-x341.google.com with SMTP id 3so14368662wmg.4 for ; Sun, 29 Nov 2020 10:22:07 -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=TkdLzPyT1Cep51Hv7vXeq3X0tHUMxT9XVutetcNrvsE=; b=NxRvJv+AhL++zTpIjeKtoN8CZdjK6vUMjTkj50OVU//sX08BfUqPKHAKcYnH2BakoZ dmmPlbN04xKk0Ph2+36zMX0LqoTGYiPt3aVmZXbC5IHoWmBZdqWbsUV7COzQ3W81yA3s jg9/rz8+lL1OONmOobAvvHioMMG5avWld+GlFqPY5gVhNtZr09WmR7RlbxK7Xl9788j+ wKCje5jy1UVr+8A7mPEFQDOYuU3q5fwqqlK0mx6Y5UHqWxIbPyaY0X1ex3eoZdQIR5Qt RZInizuJpmEf0WFABea4AyYmtl9WmYG8ElKv8zNnpQ0mBQkUdG2ICkSbzoqqfY9nkORk 526w== 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=TkdLzPyT1Cep51Hv7vXeq3X0tHUMxT9XVutetcNrvsE=; b=Ggmkgt8FC1Kz3VmtoAVXHU3qgq8mTGF4TqirOxUTuXypMRxJYrEptuRlvf5V35p6QL RIiq8NvEX30hoE4Ka7hY8uawefeQxX3rqK4Zmm403EJpsLqbsd4vULTwlOpMe3CEPnEl XS2Tso0fa7qRYU7iZZvCkKP+QCLNta1xJMBCtWFjm+40Ofdokq6eP6rh+2zGdu905yaZ Me/DSO5Mk0f6DKrULG4KWQ/839u9QWf20iqWBStBSmAFI44ds197iGGuT5LpEQxoN0t3 oio2WCkotJ5Ne9G3XWCYp2GUks5XwRrOaDQOzhiG/rFLaFYPL6q+SHLDIpM9uYkIudkq ZGGA== X-Gm-Message-State: AOAM532GembDGEHN/KTwa4RwLIKCnh7lzHcILP7+cmN/zkXEG/BogEVv OyZecw1VgHXlcJZHnjJPJ9Id0X6tEaqu X-Google-Smtp-Source: ABdhPJxHxbtSCoAaPhR4UUPWu01ixBDOzCazofEHjnSKRCdfV5uMOrqNp5ebiKIGm9rJN0UG4mPztw== X-Received: by 2002:a1c:5446:: with SMTP id p6mr19421540wmi.167.1606674124539; Sun, 29 Nov 2020 10:22:04 -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 v4sm25509074wru.12.2020.11.29.10.22.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Nov 2020 10:22:04 -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> From: Martin Goodson Message-ID: <38743862-cab6-5f30-e143-e4175316ff28@googlemail.com> Date: Sun, 29 Nov 2020 18:22:03 +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 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. 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.