pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Disk Usage Problem
2+ messages / 2 participants
[nested] [flat]

* Disk Usage Problem
@ 2005-08-31 03:52  Michael Fahey <mfahey@winklerpartners.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Michael Fahey @ 2005-08-31 03:52 UTC (permalink / raw)
  To: pgsql-admin

My database cluster at 22 GB is outgrowing the 30 GB partition I set 
aside for it.

I periodically dump the cluster to a development server, but when it is 
loaded onto the development server, the cluster takes up just 145MB.

I use temporary tables fairly extensively in a key part of the application.

Here are the biggest tables in the production system:

             relname             | relfilenode | relpages
---------------------------------+-------------+----------
 pg_attribute_relid_attnam_index |       16609 |  2519264
 pg_attribute_relid_attnum_index |       16610 |    98014
 pg_class_relname_nsp_index      |       16614 |    25220
 

I'm using 7.4.7-6sarge1 . I vacuum nightly and do a full vacuum weekly, 
but this doesn't seem to have any effect on size.



TIA

Michael




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Disk Usage Problem
@ 2005-08-31 04:44  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Michael Fahey <mfahey@winklerpartners.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2005-08-31 04:44 UTC (permalink / raw)
  To: Michael Fahey <mfahey@winklerpartners.com>; +Cc: pgsql-admin

Michael Fahey <mfahey@winklerpartners.com> writes:
> My database cluster at 22 GB is outgrowing the 30 GB partition I set 
> aside for it.

> I periodically dump the cluster to a development server, but when it is 
> loaded onto the development server, the cluster takes up just 145MB.

> I'm using 7.4.7-6sarge1 . I vacuum nightly and do a full vacuum weekly, 
> but this doesn't seem to have any effect on size.

It's clear that you aren't vacuuming *nearly* enough for your workload.
Think about vacuuming hourly.  Check your FSM settings.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-08-31 04:44 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-08-31 03:52 Disk Usage Problem Michael Fahey <mfahey@winklerpartners.com>
2005-08-31 04:44 ` Tom Lane <tgl@sss.pgh.pa.us>

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