pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: rajan <vgmonnet@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: vacuum full is not reclaiming the space and showing non-removable rows
Date: Fri, 18 Nov 2016 11:01:12 -0500
Message-ID: <19337.1479484872@sss.pgh.pa.us> (raw)
In-Reply-To: <1479470449084-5930937.post@n3.nabble.com>
References: <1479470449084-5930937.post@n3.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (4+ messages)  latest in thread

Message-ID: <19337.1479484872@sss.pgh.pa.us>
Permalink:  ../19337.1479484872@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19337.1479484872@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, vgmonnet@gmail.com
  Subject: Re: vacuum full is not reclaiming the space and showing non-removable rows
  In-Reply-To: <19337.1479484872@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox