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 1imLwe-0003G5-Rj for pgsql-general@arkaria.postgresql.org; Tue, 31 Dec 2019 18:08:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1imLwc-00085X-Qt for pgsql-general@arkaria.postgresql.org; Tue, 31 Dec 2019 18:08:38 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1imLwc-00085Q-5v for pgsql-general@lists.postgresql.org; Tue, 31 Dec 2019 18:08:38 +0000 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1imLwZ-0007MP-Ou for pgsql-general@lists.postgresql.org; Tue, 31 Dec 2019 18:08:36 +0000 Received: by mail-ot1-x32b.google.com with SMTP id a15so51110382otf.1 for ; Tue, 31 Dec 2019 10:08:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=j2r1ktQKDA5AnJvEKkc8KI6VmalQLsoqK6g+rzs9Yac=; b=GtA+kVIE3/v/MW0c6kKpxymr5HgaPJNlhAsD9UOun/vSpWIGfBdxGNgoA3A0LgoHWA sPCygHuWYleFs0dcJMe95bQWIQzjxFefzyPjIAahG/rh8ceSHaQS7JCbkFI43elNZBdH qnDRX24MLdk/LnU0CYeifjHDHxihoGFLSZ/5n6J9AAJB/v+G0vwjAVAITW8TVFGgc7DL i/Y1uvj+5W1Gldj+DizUmFdryg2OZRD17EQru5fqYwYGS2D2s8XWAW8spRZXdImbJPoc kWmUDSP98oSP1kAR5cxfzMDdnejKsc7CuEEsx4OGhy2l+q0F7xmKQJyp+En0KgFDdjRV Z1Zw== 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; bh=j2r1ktQKDA5AnJvEKkc8KI6VmalQLsoqK6g+rzs9Yac=; b=FEIMb9I3DG9nOuGtcY+cYQDW1vcTH8r91IJ8bPjoXSL6izOUwtVxBGAv8b5gxIid+9 eEyagL9+JxEE+3H1rwCE8VYZgBEttTqD2nCKqmlYDmDvMM0HOYG5eVMLpm9nEPAUohuX SGnxL3h4MinJcHXGgWjZBM7oGEqxW5IgmbAt+SIZ7kke5vtG5GVOO1xP5ZvxwpA8/HqC pXTOsnF0bKFDzTgYVOQe5YbrvQZ14Cjt8HdJcFaLzcAtyXcE970LueT1p3iTwBpvh+3A TXDwZVOCvraH/oeYl1a15vtnKVwUPZYiZSIiQXsYJB6D3HLsuKiDrk+wGitXLGBm2eYl SWAQ== X-Gm-Message-State: APjAAAUeN8N6pbt1/hgy3MbcYKjniRsUBdExyR+G0jE5Sfm6TS5eAKsQ HJBXkHHJmstl4xF917s+0XvBZqkB6K0= X-Google-Smtp-Source: APXvYqxc0XJ1ToQVD/PdGFR5Yh9W3j5tGvD744fu5GodctLJb9RS8lhsZ8aq2q1GSIk+IzFeGQpJVw== X-Received: by 2002:a9d:3f61:: with SMTP id m88mr64022373otc.56.1577815714544; Tue, 31 Dec 2019 10:08:34 -0800 (PST) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id g5sm17088995otp.10.2019.12.31.10.08.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Dec 2019 10:08:33 -0800 (PST) Subject: Re: How to reset a server error '25P02 in_failed_sql_transaction' To: "pgsql-general@lists.postgresql.org" References: <20191231055501.GA2812@c720-r342378> From: Ron Message-ID: <08a584b3-938d-1d74-36f3-c1cdefb9b75c@gmail.com> Date: Tue, 31 Dec 2019 12:08:32 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------CFF39E8FE9CFC27399D87C03" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------CFF39E8FE9CFC27399D87C03 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 12/31/19 11:29 AM, David G. Johnston wrote: > On Tuesday, December 31, 2019, Ron > wrote: > > But how do you issue a ROLLBACK to a different pid? > > > You cannot.  At that point you need to start from scratch. > > pg_terminate_backend(/pid int/) > > And let the problematic app deal with losing its database connection > however it will. > > David J. That's what I thought (and privately told OP). -- Angular momentum makes the world go 'round. --------------CFF39E8FE9CFC27399D87C03 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 12/31/19 11:29 AM, David G. Johnston wrote:
On Tuesday, December 31, 2019, Ron <ronljohnsonjr@gmail.com> wrote:
But how do you issue a ROLLBACK to a different pid?

You cannot.  At that point you need to start from scratch.

 pg_terminate_backend(pid int)

And let the problematic app deal with losing its database connection however it will.

David J.

That's what I thought (and privately told OP).


--
Angular momentum makes the world go 'round.
--------------CFF39E8FE9CFC27399D87C03--