Re: Estimating Database Disk Space

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ralough(at)iee(dot)org
Cc: PostgreSQL Novice ML <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Estimating Database Disk Space
Date: 2002-03-20 21:43:21
Message-ID: 8021.1016660601@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Richard A Lough <ralough(dot)ced(at)dnet(dot)co(dot)uk> writes:
> Only one of my active databases
> shows significant figures (recently increased):

> relpages | relname
> 17473 pg_attribute_relid_attnam_index
> 7267 pg_attribute_relid_attnum_index
> 3245 pg_attribute

Yipes ... you must do a lot of table creation and deletion.

The index bloat here is a known result of inefficiency in vacuuming
indexes (there's no good way to reclaim index pages at the moment).
You could probably fix it by REINDEXing pg_attribute, but it might
be easier to just dump, dropdb, createdb, reload that database.

Yes, there's a TODO item to improve index vacuuming ...

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Doug Silver 2002-03-20 22:14:08 perl/DBI transaction rollback of sequences
Previous Message Richard A Lough 2002-03-20 21:34:31 Re: Estimating Database Disk Space