Re: vacuum full is not reclaiming the space and showing non-removable rows - Mailing list pgsql-admin

From Tom Lane
Subject Re: vacuum full is not reclaiming the space and showing non-removable rows
Date
Msg-id 19337.1479484872@sss.pgh.pa.us
Whole thread Raw
In response to vacuum full is not reclaiming the space and showing non-removable rows  (rajan <vgmonnet@gmail.com>)
Responses Re: vacuum full is not reclaiming the space and showing non-removable rows  (rajan <vgmonnet@gmail.com>)
List pgsql-admin
rajan <vgmonnet@gmail.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


pgsql-admin by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: Why are a lot of ROLLBACK queries in idle state
Next
From: Achilleas Mantzios
Date:
Subject: Effect of archive_mode , archive_command when set on the standby