Re: Space occupied by Postgres index.

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Shridhar Polas" <shridharpolas(at)gmail(dot)com>, "'Kenneth Marshall'" <ktm(at)rice(dot)edu>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Space occupied by Postgres index.
Date: 2010-11-30 18:53:44
Message-ID: 4CF4F3D80200002500037F9E@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Shridhar Polas" <shridharpolas(at)gmail(dot)com> wrote:

> In my test setup I found that the disk space consumed by Postgers
> is not getting declined even after deleting records from tables,
> if I do not perform VACUUM FULL and REINDEX.

True, but if you expect the tables to grow again it's generally
better to leave the space allocated to PostgreSQL than to make it
give it back up to the OS for the moment and have to go ask for it
again later.

If you don't expect PostgreSQL to need the space again and you want
to release it back to the OS, prior to release 9.0 it is usually
better to use CLUSTER than to use VACUUM FULL and REINDEX.

-Kevin

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Samuel Stearns 2010-11-30 23:34:24 Re: Setting Schema on Restore
Previous Message Kenneth Marshall 2010-11-30 18:41:03 Re: Space occupied by Postgres index.