Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XsaCR-0001Bc-7B for pgsql-bugs@arkaria.postgresql.org; Sun, 23 Nov 2014 16:39:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XsaCP-0003MO-Hh for pgsql-bugs@arkaria.postgresql.org; Sun, 23 Nov 2014 16:39:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XsaCN-0003MD-Dl for pgsql-bugs@postgresql.org; Sun, 23 Nov 2014 16:39:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XsaCF-000566-Ee for pgsql-bugs@postgresql.org; Sun, 23 Nov 2014 16:39:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id sANGdVMs008771; Sun, 23 Nov 2014 11:39:31 -0500 From: Tom Lane To: ludwig.adam@petafuel.de cc: pgsql-bugs@postgresql.org Subject: Re: BUG #12035: Prepared Transactions cannot be ROLLBACKed In-reply-to: <20141123123228.15507.82506@wrigleys.postgresql.org> References: <20141123123228.15507.82506@wrigleys.postgresql.org> Comments: In-reply-to ludwig.adam@petafuel.de message dated "Sun, 23 Nov 2014 12:32:28 +0000" Date: Sun, 23 Nov 2014 11:39:31 -0500 Message-ID: <8770.1416760771@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org ludwig.adam@petafuel.de writes: > Matheus0l on #postgresql asked me to file a bug on this: Our setup is two > postgres servers in streaming replication controlled by pgpool II. After a > failover (i.e. slave got promoted) we had around 16 Prepared Transactions in > pg_prepared_xacts for the new master, locking some tables. > However we were unable to Perform "ROLLBACK prepared 'gid'"- it gave us the > error message:" > ERROR: cannot rollback prepared transaction 'gid'- transaction is busy." I cannot find any occurrence of such an error message in the Postgres source code (either HEAD or 9.1.x). So I think this message must have come from some other code --- perhaps whatever you're using for a 2PC controller? If that controller saw the old master and new master as two different systems, it's not too surprising that it got confused. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs