Re: PostgreSQL reclaiming table space

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Anthony Bull <antsbull(at)gmail(dot)com>
Cc: Jens Wilke <jens(at)wilke(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL reclaiming table space
Date: 2012-05-28 17:01:12
Message-ID: 8149.1338224472@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Anthony Bull <antsbull(at)gmail(dot)com> writes:
> About 3 hours after the Vacuum full completed, the disk space got returned
> to the OS - now Windows is reporting it has all that disk back. Must have
> been waiting for something? Anyway, great news!

Probably means that some session was holding on to an open-file pointer
to the old copy of the table. It's difficult to ensure that such
pointers are released quickly without causing performance degradation
for normal cases. (But having said that, I think we've fixed some bugs
in which pointers were held open unnecessarily. You didn't say exactly
how old a PG version you were using ...)

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2012-05-28 17:41:55 Re: Deleting, indexes and transactions
Previous Message Tom Lane 2012-05-28 16:55:16 Re: Re: [GENERAL] Forcefully adding a CHECK constrained