Re: Reltuples/n_live_tup values wrong

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Sebastian Kornehl <webmaster(at)sourcebase(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Reltuples/n_live_tup values wrong
Date: 2013-08-07 13:30:39
Message-ID: 8016.1375882239@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Sebastian Kornehl <webmaster(at)sourcebase(dot)org> 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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Sebastian Kornehl 2013-08-07 14:16:45 Re: Reltuples/n_live_tup values wrong
Previous Message Greg Stark 2013-08-07 12:58:28 Re: Reltuples/n_live_tup values wrong