From: Matthias Apitz <guru@unixarea.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to reset a server error '25P02 in_failed_sql_transaction'
Date: Wed, 1 Jan 2020 18:39:36 +0100
Message-ID: <20200101173936.GA6796@c720-r342378> (raw)
In-Reply-To: <VI1PR0501MB26698E93A206543AE9F497BCEF260@VI1PR0501MB2669.eurprd05.prod.outlook.com>
References: <20191231055501.GA2812@c720-r342378>
<VI1PR0501MB26698E93A206543AE9F497BCEF260@VI1PR0501MB2669.eurprd05.prod.outlook.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: guru@unixarea.de
Subject: Re: How to reset a server error '25P02 in_failed_sql_transaction'
In-Reply-To: <20200101173936.GA6796@c720-r342378>
References: <20191231055501.GA2812@c720-r342378> <VI1PR0501MB26698E93A206543AE9F497BCEF260@VI1PR0501MB2669.eurprd05.prod.outlook.com> <20200101173936.GA6796@c720-r342378>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox