Re: tables getting bloated - Mailing list pgsql-general

From Vick Khera
Subject Re: tables getting bloated
Date
Msg-id 2968dfd61003180737q307298f5u260ae3ca33fd2f94@mail.gmail.com
Whole thread Raw
In response to Re: tables getting bloated  (akp geek <akpgeek@gmail.com>)
List pgsql-general
2010/3/18 akp geek <akpgeek@gmail.com>:
> I have job that does the vacuum full every day for those 2 tables and also
> for the database. By the end of the day, the get bloated.

Do not run vacuum full.  Run vacuum.  For these two tables, run vacuum
more often, as you clearly are updating it very frequently.  You may
want to investigate running autovacuum which will probably take care
of this for you.

For our big database, I run vacuum nightly on the whole thing, and let
autovacuum run as well, to take care of the high-churn tables.  I run
the nightly just to keep the autovacuum from running during peak times
on my larger tables which don't churn as much, but are speed
sensitive.

pgsql-general by date:

Previous
From: Ashesh Vashi
Date:
Subject: Re: compile a program witn libpq64 (error LIBCMT.Lib...)
Next
From: "Albe Laurenz"
Date:
Subject: Re: definitions of regexp functions required