pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Devrim GÜNDÜZ <devrim@gunduz.org>
To: Khangelani Gama <Khangelani.Gama@ucs-software.co.za>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Table space grow big - PostgreSQL
Date: Wed, 05 May 2010 14:47:15 +0300
Message-ID: <1273060035.5906.24.camel@hp-laptop2.gunduz.org> (raw)
In-Reply-To: <D78A8169F9436B4DB978300336168F3B3359C9CBB9@SWBREXCH00.ucs-software.net>
References: <D78A8169F9436B4DB978300336168F3B3359C9CBB9@SWBREXCH00.ucs-software.net>

On Wed, 2010-05-05 at 13:36 +0200, Khangelani Gama wrote:
> The main question I have is: What makes
> the /usr/local/pgsql/data/base/95186722/  grow so big while the actual
> data with its schema is only 2.8G and that is there a way to reduce
> the table space sizes or anything related to that?

Which PostgreSQL version is this? I'm assuming it is an old one, since
you are running Red Hat 9. 

Have you vacuumed it recently/regularly? If not, dead space (space that
is consumed by dead tuples) will consume lots of disk space, until they
are vacuumed. However, If you haven't vacuumed for a long time, it may
be the best to dump/restore the database, and then apply regular
maintenance:

http://www.postgresql.org/docs/current/static/maintenance.html

Regards, 
-- 
Devrim GÜNDÜZ
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
PostgreSQL RPM Repository: http://yum.pgrpms.org
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org  Twitter: http://twitter.com/devrimgunduz

Attachments:

  signature.asc (application/pgp-signature, 197B) download

view thread (14+ messages)  latest in thread

Message-ID: <1273060035.5906.24.camel@hp-laptop2.gunduz.org>
Permalink:  ../1273060035.5906.24.camel@hp-laptop2.gunduz.org/
Also on:    postgresql.org/message-id/1273060035.5906.24.camel@hp-laptop2.gunduz.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: devrim@gunduz.org, Khangelani.Gama@ucs-software.co.za
  Subject: Re: Table space grow big - PostgreSQL
  In-Reply-To: <1273060035.5906.24.camel@hp-laptop2.gunduz.org>
  References: <D78A8169F9436B4DB978300336168F3B3359C9CBB9@SWBREXCH00.ucs-software.net> <1273060035.5906.24.camel@hp-laptop2.gunduz.org>

* 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