pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Brannen <kevinb@nurseamerica.net>
To: Jeff Boes <jboes@nexcerpt.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: PG 7.2 on Linux: where's the space?
Date: Fri, 23 Aug 2002 13:15:03 -0500
Message-ID: <3D667BA7.3090202@nurseamerica.net> (raw)
References: <d40a65a1.0208230941.74dbc9e6@posting.google.com>

Jeff Boes wrote:
> We upgraded from 7.1 to 7.2 recently, and saw the used space on our
> database partition drop from something like 80% to under 20% (as
> measured by 'du').  Hurrah!  However, it's about four weeks later and
> we're back to over 80% again.  Is the solution:

This has been discussed a fair bit recently.  I'll try attempt to help, 
though I'm sure others are much more qualified.

> 
> 1) More frequent VACUUM FULL operations?

Possibly.  However, it's been noted that if you do a lot of deletes 
and/or updates so that you have a lot of "dead" tuples, you probably 
need to increase your "fsm_*" parameters.  Search the newsgroup archive 
for their names for advice on size.

> 
> 2) REINDEX our biggest tables?

It has also been noted that indexes can do this too, again a high churn 
rate is the cause.  Off the top of my head I don't remember how to find 
this out, but it's in the newsgroup archives too.  But I think one of 
the things you can do was:

select * from pg_class order by relpages desc;

to try to find out where the space is going.  Search for something like 
that.

> 
> 3) Periodicly dump and reload our biggest tables?

I hope not! :-)  Increase your fsm_* values and see what that does for 
you, before you take more drastic measures.

HTH,
Kevin

> 
> I'm really hoping this last one is not the answer, as we'd have to
> take the system offline for hours every week to accomplish this.





view thread (3+ messages)  latest in thread

Message-ID: <3D667BA7.3090202@nurseamerica.net>
Permalink:  ../3D667BA7.3090202@nurseamerica.net/
Also on:    postgresql.org/message-id/3D667BA7.3090202@nurseamerica.net

 · 

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: kevinb@nurseamerica.net, jboes@nexcerpt.com
  Subject: Re: PG 7.2 on Linux: where's the space?
  In-Reply-To: <3D667BA7.3090202@nurseamerica.net>
  References: <d40a65a1.0208230941.74dbc9e6@posting.google.com> <3D667BA7.3090202@nurseamerica.net>

* 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