Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1imhzJ-0002IY-5C for pgsql-general@arkaria.postgresql.org; Wed, 01 Jan 2020 17:40:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1imhyJ-00029o-J2 for pgsql-general@arkaria.postgresql.org; Wed, 01 Jan 2020 17:39:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1imhyJ-00029h-96 for pgsql-general@lists.postgresql.org; Wed, 01 Jan 2020 17:39:51 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1imhyC-0007H3-3N for pgsql-general@lists.postgresql.org; Wed, 01 Jan 2020 17:39:50 +0000 Received: from [188.174.57.217] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1imhy6-0000sN-Ld; Wed, 01 Jan 2020 18:39:38 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id 001HdbbQ006934 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 1 Jan 2020 18:39:37 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id 001HdawS006933; Wed, 1 Jan 2020 18:39:36 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Wed, 1 Jan 2020 18:39:36 +0100 From: Matthias Apitz To: pgsql-general@lists.postgresql.org Subject: Re: How to reset a server error '25P02 in_failed_sql_transaction' Message-ID: <20200101173936.GA6796@c720-r342378> Reply-To: Matthias Apitz References: <20191231055501.GA2812@c720-r342378> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 13.0-CURRENT r342378 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.11.1 (2018-12-01) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.57.217 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk El día martes, diciembre 31, 2019 a las 10:06:22a. m. +0000, Patrick FICHE escribió: > Hi, > > Which behavior are you looking for ? > If you want the following statements to succeed, I guess that you don't want to be in a transaction context. > In this case, you should have a look at the following link : https://www.postgresql.org/docs/11/ecpg-commands.html > By default, the AUTOCOMMIT is OFF but you can set it to ON and it should solve your issue as only explicit transactions will keep a transaction context. > > Regards, Hi, To summarize the different hints: - terminate the relevant backend process with pg_terminate_backend() - issue ROLLBACK - set AUTOCOMMIT TO ON Thanks, I will try these hints in the order from bottom to up, and as well to close/re-open the connection to the server, without the GUI client will note this; every GUI client has its own application server: GUI (Java in Windows) --> application server (ESQL/C Linux) --> PGserver Thanks (and btw: Happy New Jear!) matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub "Glaube wenig, hinterfrage alles, denke selbst: Wie man Manipulationen durchschaut" "Believe little, scrutinise all, think by your own: How see through manipulations" ISBN-10: 386489218X