Re: database question - Mailing list pgsql-general

From Greg Smith
Subject Re: database question
Date
Msg-id Pine.GSO.4.64.0809291805120.16949@westnet.com
Whole thread Raw
In response to database question  (john.crawford@sirsidynix.com)
List pgsql-general
On Mon, 29 Sep 2008, john.crawford@sirsidynix.com wrote:

> What are these files and why have they suddenly started to be created
> and why so large?

They're the contents of the database and they get created every time there
is another 1GB worth of data in there.  Note that the database will use
more space if data is being UPDATEd and you don't vacuum it regularly.
Without the vacuum going it's as if you'd added a new row instead when you
update something.

While it's possible to decode what those files are by using oid2name or
pg_class, what you probably want to know instead is what the big tables
and indexes in your database are to figure out what is gobbling space.
The script at http://wiki.postgresql.org/wiki/Disk_Usage will give you
that.

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD

pgsql-general by date:

Previous
From: "David Rowley"
Date:
Subject: Re: Sample databases
Next
From: Bruce Momjian
Date:
Subject: Re: pg_start_backup() takes too long