Re: VACUUM and other maintenance work - Mailing list pgsql-novice

From Tom Lane
Subject Re: VACUUM and other maintenance work
Date
Msg-id 6641.1112369849@sss.pgh.pa.us
Whole thread Raw
In response to VACUUM and other maintenance work  ("Christian Hofmann" <christian.hofmann@gmx.de>)
List pgsql-novice
"Christian Hofmann" <christian.hofmann@gmx.de> writes:
> 2. Connecting, maybe by a cron job, to the database and submitting the query
> "VACUUM ANALYZE" will prevent me from losing data from not vacuuming. Is
> that correct?

You have to do this in each connectable database (yes, you can ignore
template0).  Most people prefer to use the vacuumdb script rather than
invent their own.

Alternatively you can use the pg_autovacuum daemon.

There are details about maintenance tasks in the manual:
http://www.postgresql.org/docs/8.0/static/maintenance.html
(adjust URL to match your PG version)

            regards, tom lane

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Handling Time
Next
From: "Rob Anderson"
Date:
Subject: Trying to group on date parts