Re: vacuum full is not reclaiming the space and showing non-removable rows

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: rajan <vgmonnet(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: vacuum full is not reclaiming the space and showing non-removable rows
Date: 2016-11-18 16:01:12
Message-ID: 19337.1479484872@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

rajan <vgmonnet(at)gmail(dot)com> writes:
> We deleted(using a delete query) a lot of rows from the above table and did
> a vacuum full. But we are not able to reclaim the space(occupied by this
> table) and the result is showing that there are nonremovable rows.

There's an old open transaction somewhere that's possibly still able to
see those rows. Look for idle sessions in pg_stat_activity.

I don't remember at the moment whether prepared-but-uncommitted
transactions can hold back reclaiming dead data, but look into
pg_prepared_xacts as well.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Achilleas Mantzios 2016-11-18 16:31:33 Effect of archive_mode , archive_command when set on the standby
Previous Message Thomas Kellerer 2016-11-18 13:01:31 Re: Why are a lot of ROLLBACK queries in idle state