Re: Vacuum Problems - Mailing list pgsql-admin

From Rafael Martinez
Subject Re: Vacuum Problems
Date
Msg-id 492D5C87.5090505@usit.uio.no
Whole thread Raw
In response to Vacuum Problems  ("Rafael Domiciano" <rafael.domiciano@gmail.com>)
Responses Re: Vacuum Problems
List pgsql-admin
Rafael Domiciano wrote:

Hei

> I need some help or just some hints. I am having problems with vacuum
> full in one table only: "clifatura".
> That table has today around 7 million rows.
>

How big is the database?

> I scheduled on the server a cron job to run VACUUM FULL every day at 23
> P.M, but on the following day, at 8 A.M. vacuum is yet working on
> "clifatura"; so I have to kill vacuum.
>

Do you have any locks in this table/database that prevent the vacuum to
be started?

Why do you use VACUUM FULL everyday? This will lock your database until
it finish. I can count with one hand the times we had to run vacuum full
in our systems in the last 6 years.

Use a normal vacuum analyze if 'autovacuum' is not enough for you.

--
 Rafael Martinez, <r.m.guerrero@usit.uio.no>
 Center for Information Technology Services
 University of Oslo, Norway

 PGP Public Key: http://folk.uio.no/rafael/

pgsql-admin by date:

Previous
From: "Rafael Domiciano"
Date:
Subject: Vacuum Problems
Next
From: "Rafael Domiciano"
Date:
Subject: Re: Vacuum Problems