Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V73p7-0007W5-V4 for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Aug 2013 13:30:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V73p7-0001ig-F4 for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Aug 2013 13:30:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V73p6-0001hz-FB for pgsql-bugs@postgresql.org; Wed, 07 Aug 2013 13:30:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V73p3-0002GA-Oy for pgsql-bugs@postgresql.org; Wed, 07 Aug 2013 13:30:44 +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 r77DUdax008017; Wed, 7 Aug 2013 09:30:40 -0400 From: Tom Lane To: Sebastian Kornehl cc: pgsql-bugs@postgresql.org Subject: Re: Reltuples/n_live_tup values wrong In-reply-to: <52024285.2030204@sourcebase.org> References: <5202205C.8030904@sourcebase.org> <6848.1375877575@sss.pgh.pa.us> <52024285.2030204@sourcebase.org> Comments: In-reply-to Sebastian Kornehl message dated "Wed, 07 Aug 2013 14:50:13 +0200" Date: Wed, 07 Aug 2013 09:30:39 -0400 Message-ID: <8016.1375882239@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 Sebastian Kornehl writes: > You might be right, I found some pg_prepared_xacts from 2013-05-23. This > was a test with a XA using application, but the application is already > offline. There is also no pid available for the given transaction id's. > Do you have any idea how to close these xa transactions without > restarting the whole db? Just use ROLLBACK PREPARED with the ID you see in pg_prepared_xacts. 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