agora inbox for pgsql-admin@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: Pascal PEYRE <peyre@cir.fr>
Cc: pgsql-admin@postgresql.org
Subject: Re: Vacuum Question
Date: Fri, 21 Feb 2003 21:41:12 -0500
Message-ID: <2168.1045881672@sss.pgh.pa.us> (raw)
In-Reply-To: <000001c2d97d$b11814c0$e3026b83@intranet.cir.fr>
References: <000001c2d97d$b11814c0$e3026b83@intranet.cir.fr>
"Pascal PEYRE" <peyre@cir.fr> writes:
> I have some big postgreSQL databases (4/5 GB at start) on this server.
> Every night I erase data and I import a lot of new data.
Exactly how do you erase the old data? If you're zapping the entire
contents of tables, TRUNCATE might be a good answer.
> For optimize my database I operate a vacuum "all" every night.
Plain vacuum, or vacuum full? If it's a plain vacuum, do you have the
free space map parameters (in postgresql.conf) set large enough to cover
your database?
> The problem is that the size of database is growing every day whereas
> the volume of data stay remains stable.
Exactly which tables are bloating? Look at the relpages column of
pg_class (just after a vacuum, so that the values are up to date).
Look to see which entries grow from day to day...
regards, tom lane
view thread (11+ messages) latest in thread
Message-ID: <2168.1045881672@sss.pgh.pa.us>
Permalink: ../2168.1045881672@sss.pgh.pa.us/
Also on: postgresql.org/message-id/2168.1045881672@sss.pgh.pa.us
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, peyre@cir.fr
Subject: Re: Vacuum Question
In-Reply-To: <2168.1045881672@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox