Re: Totally unremovable dead rows?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Derek Chen-Becker <dbecker(at)cpicorp(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Totally unremovable dead rows?
Date: 2008-05-13 20:34:49
Message-ID: 4989.1210710889@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Derek Chen-Becker <dbecker(at)cpicorp(dot)com> writes:
> I'm running OpenNMS on a machine that was misconfigured and our
> event database climbed to 2.8 million rows. I've gone in and archived
> that vast majority out to files on disk and now the table has about
> 20-30k rows. When I do a "vacuum full", though, it says that the vast
> majority of the rows are dead rows that are unremovable.

> Do I have a corrupted DB?

More likely you have an ancient prepared transaction that was never
committed. Look in pg_prepared_xacts.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Chris Browne 2008-05-13 20:48:27 Re: PG -v- MySQL
Previous Message Martijn van Oosterhout 2008-05-13 20:05:23 Re: how can i get initdb